2018-05-22 15:03:45 +00:00
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
|
2020-07-09 09:08:47 +00:00
|
|
|
export default Route.extend({
|
2018-05-22 15:03:45 +00:00
|
|
|
queryParams: {
|
2020-05-29 15:42:46 +00:00
|
|
|
filterBy: {
|
2020-02-19 19:26:38 +00:00
|
|
|
as: 'action',
|
|
|
|
},
|
2020-05-29 15:42:46 +00:00
|
|
|
search: {
|
2018-05-22 15:03:45 +00:00
|
|
|
as: 'filter',
|
|
|
|
replace: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
model: function(params) {
|
2020-07-09 09:08:47 +00:00
|
|
|
return {
|
|
|
|
dc: this.modelFor('dc').dc.Name,
|
|
|
|
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
|
|
|
|
};
|
2018-05-22 15:03:45 +00:00
|
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
|
|
controller.setProperties(model);
|
|
|
|
},
|
|
|
|
});
|