2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2022-10-26 09:15:57 +00:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
}
|