open-consul/ui-v2/app/routes/dc/intentions/index.js
Kenia b3eafef6b0
ui: Add sorting to Intentions with tests (#8348)
* Add sorting to Intentions with tests

* Skip Intentions url back test

* Create comparator for intention and implement in template

* Add a intentions navigation feature test
2020-07-28 11:06:32 -04:00

21 lines
433 B
JavaScript

import Route from '@ember/routing/route';
export default Route.extend({
queryParams: {
sortBy: 'sort',
search: {
as: 'filter',
replace: true,
},
},
model: function(params) {
return {
dc: this.modelFor('dc').dc.Name,
nspace: this.modelFor('nspace').nspace.substr(1) || 'default',
};
},
setupController: function(controller, model) {
controller.setProperties(model);
},
});