mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
set the inventory file to pristine on source change
This commit is contained in:
@@ -99,9 +99,6 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
|||||||
options: 'inventory_files',
|
options: 'inventory_files',
|
||||||
model: 'inventory_file'
|
model: 'inventory_file'
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: figure out why the inventory file model is being set to
|
|
||||||
// dirty
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$scope.lookupCredential = function(){
|
||||||
@@ -160,6 +157,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
|||||||
|
|
||||||
if (source === 'scm') {
|
if (source === 'scm') {
|
||||||
$scope.overwrite_vars = true;
|
$scope.overwrite_vars = true;
|
||||||
|
$scope.inventory_source_form.inventory_file.$setPristine();
|
||||||
} else {
|
} else {
|
||||||
$scope.overwrite_vars = false;
|
$scope.overwrite_vars = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user