mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Add clone of list objects for each state definition
This commit is contained in:
parent
1d3d6be029
commit
cb860261fe
@ -18,8 +18,6 @@ function LegacyCredentialsService (pathService) {
|
||||
},
|
||||
'list@credentials': {
|
||||
templateProvider: function(CredentialList, generateList) {
|
||||
CredentialList.iterator = 'credential';
|
||||
|
||||
let html = generateList.build({
|
||||
list: CredentialList,
|
||||
mode: 'edit'
|
||||
|
||||
@ -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