2020-10-01 09:33:22 +01:00
|
|
|
import Route from 'consul-ui/routing/route';
|
2018-05-22 16:03:45 +01:00
|
|
|
|
2020-07-09 10:08:47 +01:00
|
|
|
export default Route.extend({
|
2018-05-22 16:03:45 +01:00
|
|
|
queryParams: {
|
2020-07-28 11:06:32 -04:00
|
|
|
sortBy: 'sort',
|
2020-05-29 16:42:46 +01:00
|
|
|
search: {
|
2018-05-22 16:03:45 +01:00
|
|
|
as: 'filter',
|
|
|
|
replace: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
model: function(params) {
|
2020-07-09 10:08:47 +01:00
|
|
|
return {
|
|
|
|
dc: this.modelFor('dc').dc.Name,
|
|
|
|
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
|
|
|
|
};
|
2018-05-22 16:03:45 +01:00
|
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
2020-10-01 09:33:22 +01:00
|
|
|
this._super(...arguments);
|
2018-05-22 16:03:45 +01:00
|
|
|
controller.setProperties(model);
|
|
|
|
},
|
|
|
|
});
|