mirror of https://github.com/status-im/consul.git
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
|
import Controller from "@ember/controller";
|
||
|
import { inject as service } from "@ember/service";
|
||
|
|
||
|
export default class DcPeersIndexController extends Controller {
|
||
|
@service router;
|
||
|
|
||
|
redirectToPeerShow = (modalCloseFn, peerModel) => {
|
||
|
modalCloseFn?.();
|
||
|
|
||
|
this.router.transitionTo("dc.peers.show", peerModel.Name);
|
||
|
};
|
||
|
}
|