mirror of https://github.com/hashicorp/consul
21 lines
466 B
JavaScript
21 lines
466 B
JavaScript
|
import Route from '@ember/routing/route';
|
||
|
|
||
|
export default Route.extend({
|
||
|
queryParams: {
|
||
|
search: {
|
||
|
as: 'filter',
|
||
|
replace: true,
|
||
|
},
|
||
|
},
|
||
|
model: function(params) {
|
||
|
return {
|
||
|
dc: this.modelFor('dc').dc.Name,
|
||
|
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
|
||
|
slug: this.paramsFor('dc.services.show').name,
|
||
|
};
|
||
|
},
|
||
|
setupController: function(controller, model) {
|
||
|
controller.setProperties(model);
|
||
|
},
|
||
|
});
|