open-consul/ui/packages/consul-ui/app/routes/dc/nodes/show/services.js

24 lines
447 B
JavaScript

import Route from 'consul-ui/routing/route';
export default class ServicesRoute extends Route {
queryParams = {
search: {
as: 'filter',
replace: true,
},
};
model() {
const parent = this.routeName
.split('.')
.slice(0, -1)
.join('.');
return this.modelFor(parent);
}
setupController(controller, model) {
super.setupController(...arguments);
controller.setProperties(model);
}
}