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