mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02: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:
@@ -33,6 +33,7 @@ function LegacyCredentialsService (pathService) {
|
|||||||
Dataset: ['CredentialList', 'QuerySet', '$stateParams', 'GetBasePath',
|
Dataset: ['CredentialList', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||||
function(list, qs, $stateParams, GetBasePath) {
|
function(list, qs, $stateParams, GetBasePath) {
|
||||||
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
||||||
|
|
||||||
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -738,8 +738,9 @@ function($injector, $stateExtender, $log, i18n) {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
ListDefinition: [field.list, function(list) {
|
ListDefinition: [field.list, function(list) {
|
||||||
list.iterator = field.sourceModel;
|
let listClone = _.cloneDeep(list);
|
||||||
return list;
|
listClone.iterator = field.sourceModel;
|
||||||
|
return listClone;
|
||||||
}],
|
}],
|
||||||
OrganizationId: ['ListDefinition', 'InventoriesService', '$stateParams', '$rootScope',
|
OrganizationId: ['ListDefinition', 'InventoriesService', '$stateParams', '$rootScope',
|
||||||
function(list, InventoriesService, $stateParams, $rootScope){
|
function(list, InventoriesService, $stateParams, $rootScope){
|
||||||
|
|||||||
Reference in New Issue
Block a user