diff --git a/awx/ui/client/lib/components/input/secret.directive.js b/awx/ui/client/lib/components/input/secret.directive.js index 5a0a9876e2..1d3a03546c 100644 --- a/awx/ui/client/lib/components/input/secret.directive.js +++ b/awx/ui/client/lib/components/input/secret.directive.js @@ -18,11 +18,11 @@ function AtInputSecretController (baseInputController) { baseInputController.call(vm, 'input', _scope_, element, form); scope = _scope_; + scope.type = 'password'; if (!scope.state._value || scope.state._promptOnLaunch) { scope.mode = 'input'; scope.state._buttonText = vm.strings.get('SHOW'); - scope.type = 'password'; vm.toggle = vm.toggleShowHide; } else {