mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Set iterator property explicitly in credentials view
The CredentialList iterator seems to get clobbered after setting an Insights credential in Inventory. This quick fix forces the iterator to be the correct value on page load.
This commit is contained in:
parent
415c80a279
commit
1d3d6be029
@ -18,6 +18,8 @@ function LegacyCredentialsService (pathService) {
|
||||
},
|
||||
'list@credentials': {
|
||||
templateProvider: function(CredentialList, generateList) {
|
||||
CredentialList.iterator = 'credential';
|
||||
|
||||
let html = generateList.build({
|
||||
list: CredentialList,
|
||||
mode: 'edit'
|
||||
@ -33,6 +35,7 @@ function LegacyCredentialsService (pathService) {
|
||||
Dataset: ['CredentialList', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||
function(list, qs, $stateParams, GetBasePath) {
|
||||
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
||||
|
||||
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user