mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Changing 'source_script' to 'inventory_script' on groups modal.
In the demodalification of the custom inventory source modal, I switched to using the naming convention "inventory_source" instead of the original "source_script" title we dubbed it when we started developing the feature. I felt that changing the naming convention better aligned with what is presented in the UI. This change continues to keep the naming convention consistent in the UI.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc function
|
* @ngdoc function
|
||||||
* @name forms.function:Source
|
* @name forms.function:Source
|
||||||
@@ -108,14 +108,14 @@ export default
|
|||||||
"</ul><p>If blank, all groups above are created except <em>Instance ID</em>.</p>",
|
"</ul><p>If blank, all groups above are created except <em>Instance ID</em>.</p>",
|
||||||
dataContainer: 'body'
|
dataContainer: 'body'
|
||||||
},
|
},
|
||||||
source_script: {
|
inventory_script: {
|
||||||
label : "Custom Inventory Script",
|
label : "Custom Inventory Script",
|
||||||
labelClass: 'prepend-asterisk',
|
labelClass: 'prepend-asterisk',
|
||||||
type: 'lookup',
|
type: 'lookup',
|
||||||
ngShow: "source && source.value === 'custom'",
|
ngShow: "source && source.value === 'custom'",
|
||||||
sourceModel: 'source_script',
|
sourceModel: 'inventory_script',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
ngClick: 'lookUpSource_script()' ,
|
ngClick: 'lookUpInventory_script()' ,
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
ngRequired: "source && source.value === 'custom'",
|
ngRequired: "source && source.value === 'custom'",
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name
|
|||||||
form: form,
|
form: form,
|
||||||
hdr: "Select Custom Inventory",
|
hdr: "Select Custom Inventory",
|
||||||
list: inventoryScriptsListObject,
|
list: inventoryScriptsListObject,
|
||||||
field: 'source_script',
|
field: 'inventory_script',
|
||||||
input_type: 'radio'
|
input_type: 'radio'
|
||||||
});
|
});
|
||||||
scope.extra_vars = (Empty(scope.source_vars)) ? "---" : scope.source_vars;
|
scope.extra_vars = (Empty(scope.source_vars)) ? "---" : scope.source_vars;
|
||||||
|
|||||||
Reference in New Issue
Block a user