2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2020-11-09 09:25:35 +00:00
|
|
|
import Route from 'consul-ui/routing/route';
|
2021-09-15 18:50:11 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2018-10-19 15:17:02 +00:00
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
|
2018-10-19 15:17:02 +00:00
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
export default class IndexRoute extends Route.extend(WithBlockingActions) {
|
2020-11-13 15:55:40 +00:00
|
|
|
@service('repository/policy') repo;
|
2020-11-09 09:25:35 +00:00
|
|
|
queryParams = {
|
2020-07-29 18:36:09 +00:00
|
|
|
sortBy: 'sort',
|
2021-01-25 18:13:54 +00:00
|
|
|
datacenter: {
|
|
|
|
as: 'dc',
|
|
|
|
},
|
2020-11-13 15:55:40 +00:00
|
|
|
kind: 'kind',
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperty: {
|
|
|
|
as: 'searchproperty',
|
|
|
|
empty: [['Name', 'Description']],
|
|
|
|
},
|
2020-05-29 15:42:46 +00:00
|
|
|
search: {
|
2018-10-19 15:17:02 +00:00
|
|
|
as: 'filter',
|
|
|
|
replace: true,
|
|
|
|
},
|
2020-11-09 09:25:35 +00:00
|
|
|
};
|
|
|
|
}
|