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-12-01 15:45:09 +00:00
|
|
|
searchproperty: {
|
|
|
|
as: 'searchproperty',
|
|
|
|
empty: [['SourceName', 'DestinationName']],
|
|
|
|
},
|
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
|
|
|
};
|
|
|
|
|
2021-01-25 18:13:54 +00:00
|
|
|
async model(params) {
|
2020-07-09 09:08:47 +00:00
|
|
|
return {
|
|
|
|
dc: this.modelFor('dc').dc.Name,
|
2021-01-04 17:22:10 +00:00
|
|
|
nspace: this.modelFor('nspace').nspace.substr(1),
|
2021-01-25 18:13:54 +00:00
|
|
|
searchProperties: this.queryParams.searchproperty.empty[0],
|
2020-07-09 09:08:47 +00:00
|
|
|
};
|
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
|
|
|
}
|
|
|
|
}
|