mirror of https://github.com/hashicorp/consul
18 lines
407 B
JavaScript
18 lines
407 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
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);
|
|
};
|
|
}
|