2019-12-17 18:47:37 +00:00
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import { hash } from 'rsvp';
|
|
|
|
|
|
|
|
import WithNspaceActions from 'consul-ui/mixins/nspace/with-actions';
|
|
|
|
export default Route.extend(WithNspaceActions, {
|
|
|
|
repo: service('repository/nspace'),
|
|
|
|
queryParams: {
|
2020-05-29 15:42:46 +00:00
|
|
|
search: {
|
2019-12-17 18:47:37 +00:00
|
|
|
as: 'filter',
|
|
|
|
replace: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
model: function(params) {
|
|
|
|
return hash({
|
|
|
|
items: this.repo.findAll(),
|
|
|
|
isLoading: false,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
|
|
controller.setProperties(model);
|
|
|
|
},
|
|
|
|
});
|