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-07-28 15:06:32 +00:00
|
|
|
sortBy: 'sort',
|
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);
|
|
|
|
},
|
|
|
|
});
|