mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Merge pull request #51 from gconsidine/ui/fix/edit-input-secret
Change secret input edit mode to display as hiddden
This commit is contained in:
@@ -18,11 +18,11 @@ function AtInputSecretController (baseInputController) {
|
|||||||
baseInputController.call(vm, 'input', _scope_, element, form);
|
baseInputController.call(vm, 'input', _scope_, element, form);
|
||||||
|
|
||||||
scope = _scope_;
|
scope = _scope_;
|
||||||
|
scope.type = 'password';
|
||||||
|
|
||||||
if (!scope.state._value || scope.state._promptOnLaunch) {
|
if (!scope.state._value || scope.state._promptOnLaunch) {
|
||||||
scope.mode = 'input';
|
scope.mode = 'input';
|
||||||
scope.state._buttonText = vm.strings.get('SHOW');
|
scope.state._buttonText = vm.strings.get('SHOW');
|
||||||
scope.type = 'password';
|
|
||||||
|
|
||||||
vm.toggle = vm.toggleShowHide;
|
vm.toggle = vm.toggleShowHide;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user