mirror of https://github.com/hashicorp/consul
21 lines
532 B
JavaScript
21 lines
532 B
JavaScript
import Route from 'consul-ui/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
|
|
|
|
export default class IndexRoute extends Route.extend(WithBlockingActions) {
|
|
@service('repository/token') repo;
|
|
queryParams = {
|
|
sortBy: 'sort',
|
|
kind: 'kind',
|
|
searchproperty: {
|
|
as: 'searchproperty',
|
|
empty: [['AccessorID', 'Description', 'Role', 'Policy']],
|
|
},
|
|
search: {
|
|
as: 'filter',
|
|
replace: true,
|
|
},
|
|
};
|
|
}
|