open-consul/ui/packages/consul-ui/app/routes/dc/peers.js

13 lines
288 B
JavaScript

import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
export default class PeersRoute extends Route {
@service features;
beforeModel() {
if (!this.features.isEnabled('peering')) {
this.transitionTo('dc.services.index');
}
}
}