mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -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();
|
$scope.job_template_form.$setPristine();
|
||||||
// this is used to set the overall form as dirty for the values
|
// 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).
|
// 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([
|
$scope.$watchGroup([
|
||||||
'inventory',
|
'inventory',
|
||||||
'project',
|
'project',
|
||||||
'multiCredential.selectedCredentials',
|
|
||||||
'extra_vars',
|
'extra_vars',
|
||||||
'diff_mode',
|
'diff_mode',
|
||||||
'instance_groups'
|
'instance_groups'
|
||||||
|
|||||||
Reference in New Issue
Block a user