2020-10-01 08:33:22 +00:00
|
|
|
import Route from 'consul-ui/routing/route';
|
2018-05-22 15:03:45 +00:00
|
|
|
|
2020-11-09 09:25:35 +00:00
|
|
|
export default class IndexRoute extends Route {
|
|
|
|
queryParams = {
|
2020-07-28 15:06:32 +00:00
|
|
|
sortBy: 'sort',
|
2020-11-13 15:55:40 +00:00
|
|
|
access: 'access',
|
2020-05-29 15:42:46 +00:00
|
|
|
search: {
|
2018-05-22 15:03:45 +00:00
|
|
|
as: 'filter',
|
|
|
|
replace: true,
|
|
|
|
},
|
2020-11-09 09:25:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
model(params) {
|
2020-07-09 09:08:47 +00:00
|
|
|
return {
|
|
|
|
dc: this.modelFor('dc').dc.Name,
|
|
|
|
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
|
|
|
|
};
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
super.setupController(...arguments);
|
2018-05-22 15:03:45 +00:00
|
|
|
controller.setProperties(model);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
}
|