mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Merge pull request #2101 from Haokun-Chen/1850
validate input when toggle replace/revert on password
This commit is contained in:
@@ -94,6 +94,7 @@ function BaseInputController (strings) {
|
|||||||
scope.state._value = scope.state._preEditValue;
|
scope.state._value = scope.state._preEditValue;
|
||||||
scope.state._activeModel = '_displayValue';
|
scope.state._activeModel = '_displayValue';
|
||||||
scope.state._placeholder = vm.strings.get('ENCRYPTED');
|
scope.state._placeholder = vm.strings.get('ENCRYPTED');
|
||||||
|
vm.check();
|
||||||
} else {
|
} else {
|
||||||
scope.state._buttonText = vm.strings.get('REVERT');
|
scope.state._buttonText = vm.strings.get('REVERT');
|
||||||
scope.state._disabled = false;
|
scope.state._disabled = false;
|
||||||
@@ -101,6 +102,7 @@ function BaseInputController (strings) {
|
|||||||
scope.state._activeModel = '_value';
|
scope.state._activeModel = '_value';
|
||||||
scope.state._value = '';
|
scope.state._value = '';
|
||||||
scope.state._placeholder = '';
|
scope.state._placeholder = '';
|
||||||
|
vm.check();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user