mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Merge pull request #5343 from mabashian/5262-org-template-list
Tweaked org job templates list query params
This commit is contained in:
@@ -234,7 +234,9 @@ export default [{
|
|||||||
params: {
|
params: {
|
||||||
template_search: {
|
template_search: {
|
||||||
value: {
|
value: {
|
||||||
project__organization: null
|
or__project__organization: null,
|
||||||
|
or__inventory__organization: null,
|
||||||
|
page_size: 20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -279,7 +281,8 @@ export default [{
|
|||||||
OrgJobTemplateDataset: ['OrgJobTemplateList', 'QuerySet', '$stateParams', 'GetBasePath',
|
OrgJobTemplateDataset: ['OrgJobTemplateList', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||||
function(list, qs, $stateParams, GetBasePath) {
|
function(list, qs, $stateParams, GetBasePath) {
|
||||||
let path = GetBasePath(list.name);
|
let path = GetBasePath(list.name);
|
||||||
$stateParams.template_search.project__organization = $stateParams.organization_id;
|
$stateParams.template_search.or__project__organization = $stateParams.organization_id;
|
||||||
|
$stateParams.template_search.or__inventory__organization = $stateParams.organization_id;
|
||||||
return qs.search(path, $stateParams.template_search);
|
return qs.search(path, $stateParams.template_search);
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user