mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 07:51:23 -03:30
Merge pull request #7146 from gconsidine/ui/fix/credential-list-with-insights
Set iterator property explicitly in credentials view
This commit is contained in:
commit
4725eae48f
@ -33,6 +33,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`]);
|
||||
}
|
||||
],
|
||||
|
||||
@ -738,8 +738,9 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
},
|
||||
resolve: {
|
||||
ListDefinition: [field.list, function(list) {
|
||||
list.iterator = field.sourceModel;
|
||||
return list;
|
||||
let listClone = _.cloneDeep(list);
|
||||
listClone.iterator = field.sourceModel;
|
||||
return listClone;
|
||||
}],
|
||||
OrganizationId: ['ListDefinition', 'InventoriesService', '$stateParams', '$rootScope',
|
||||
function(list, InventoriesService, $stateParams, $rootScope){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user