mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-15 04:21:49 -05:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import {templateUrl} from '../../shared/template-url/template-url.factory';
|
|
import { N_ } from '../../i18n';
|
|
|
|
export default {
|
|
name: 'instanceGroups.instances.list',
|
|
url: '/instances',
|
|
searchPrefix: 'instance',
|
|
ncyBreadcrumb: {
|
|
parent: 'instanceGroups',
|
|
label: N_('{{breadcrumb.instance_group_name}}')
|
|
},
|
|
params: {
|
|
instance_search: {
|
|
value: {
|
|
page_size: '20',
|
|
order_by: 'hostname'
|
|
},
|
|
dynamic: false
|
|
}
|
|
},
|
|
views: {
|
|
'list@instanceGroups.instances': {
|
|
templateUrl: templateUrl('./instance-groups/instances/instances-list'),
|
|
controller: 'InstanceListController'
|
|
}
|
|
},
|
|
resolve: {
|
|
Dataset: ['InstanceList', 'QuerySet', '$stateParams', 'GetBasePath',
|
|
function(list, qs, $stateParams, GetBasePath) {
|
|
let path = `${GetBasePath('instance_groups')}${$stateParams.instance_group_id}/instances`;
|
|
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
|
}
|
|
]
|
|
}
|
|
};
|