mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
break out credential watch statement in order to disable launch when creds are removed
This commit is contained in:
@@ -221,10 +221,14 @@ export default
|
||||
$scope.job_template_form.$setPristine();
|
||||
// this is used to set the overall form as dirty for the values
|
||||
// that don't actually set this internally (lookups, toggles and code mirrors).
|
||||
$scope.$watchCollection('multiCredential.selectedCredentials', (val, prevVal) => {
|
||||
if (!_.isEqual(val, prevVal)) {
|
||||
$scope.job_template_form.$setDirty();
|
||||
}
|
||||
});
|
||||
$scope.$watchGroup([
|
||||
'inventory',
|
||||
'project',
|
||||
'multiCredential.selectedCredentials',
|
||||
'extra_vars',
|
||||
'diff_mode',
|
||||
'instance_groups'
|
||||
|
||||
Reference in New Issue
Block a user