mirror of https://github.com/hashicorp/consul
25 lines
496 B
JavaScript
25 lines
496 B
JavaScript
import Route from 'consul-ui/routing/route';
|
|
|
|
export default class IndexRoute extends Route {
|
|
queryParams = {
|
|
sortBy: 'sort',
|
|
access: 'access',
|
|
search: {
|
|
as: 'filter',
|
|
replace: true,
|
|
},
|
|
};
|
|
|
|
model(params) {
|
|
return {
|
|
dc: this.modelFor('dc').dc.Name,
|
|
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
|
|
};
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(...arguments);
|
|
controller.setProperties(model);
|
|
}
|
|
}
|