mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 08:31:28 -03:30
break out credential watch statement in order to disable launch when creds are removed
This commit is contained in:
parent
635aa9fd56
commit
7e47a924c5
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user