diff --git a/awx/ui/client/lib/components/components.strings.js b/awx/ui/client/lib/components/components.strings.js index ce5de265b3..4f506bc480 100644 --- a/awx/ui/client/lib/components/components.strings.js +++ b/awx/ui/client/lib/components/components.strings.js @@ -4,12 +4,12 @@ function ComponentsStrings (BaseString) { const { t } = this; const ns = this.components; - ns.REPLACE = t.s('REPLACE'); - ns.REVERT = t.s('REVERT'); + ns.REPLACE = t.s('Replace'); + ns.REVERT = t.s('Revert'); ns.ENCRYPTED = t.s('ENCRYPTED'); ns.OPTIONS = t.s('OPTIONS'); - ns.SHOW = t.s('SHOW'); - ns.HIDE = t.s('HIDE'); + ns.SHOW = t.s('Show'); + ns.HIDE = t.s('Hide'); ns.message = { REQUIRED_INPUT_MISSING: t.s('Please enter a value.'), diff --git a/awx/ui/client/lib/components/input/secret.directive.js b/awx/ui/client/lib/components/input/secret.directive.js index 1d1384fcfc..de16f12269 100644 --- a/awx/ui/client/lib/components/input/secret.directive.js +++ b/awx/ui/client/lib/components/input/secret.directive.js @@ -22,12 +22,14 @@ function AtInputSecretController (baseInputController) { scope = _scope_; scope.type = 'password'; scope.state._show = false; + scope.state._showHideText = vm.strings.get('SHOW'); if (!scope.state._value || scope.state._promptOnLaunch) { scope.mode = 'input'; } else { scope.mode = 'encrypted'; scope.state._placeholder = vm.strings.get('ENCRYPTED'); + scope.state._buttonText = vm.strings.get('REPLACE'); } vm.check(); @@ -49,9 +51,11 @@ function AtInputSecretController (baseInputController) { if (scope.type === 'password') { scope.type = 'text'; scope.state._show = true; + scope.state._showHideText = vm.strings.get('HIDE'); } else { scope.type = 'password'; scope.state._show = false; + scope.state._showHideText = vm.strings.get('SHOW'); } }; diff --git a/awx/ui/client/lib/components/input/secret.partial.html b/awx/ui/client/lib/components/input/secret.partial.html index 9518965cc7..23ef5f6d98 100644 --- a/awx/ui/client/lib/components/input/secret.partial.html +++ b/awx/ui/client/lib/components/input/secret.partial.html @@ -35,7 +35,10 @@ @@ -44,7 +47,10 @@ diff --git a/awx/ui/client/lib/components/input/textarea-secret.partial.html b/awx/ui/client/lib/components/input/textarea-secret.partial.html index 0b5db6c0db..0e4aebe44e 100644 --- a/awx/ui/client/lib/components/input/textarea-secret.partial.html +++ b/awx/ui/client/lib/components/input/textarea-secret.partial.html @@ -23,7 +23,7 @@ ng-show="state.asTag" class="form-control at-Input at-InputTaggedTextarea" ng-class="{ - 'at-Input--rejected': state._rejected, + 'at-Input--rejected': state._rejected, }" >
@@ -50,6 +50,9 @@ class="btn at-ButtonHollow--white at-Input-button--long-sm" ng-disabled="state.asTag || (!state._enableToggle && (state._disabled || form.disabled))" ng-click="state._isBeingReplaced = !state._isBeingReplaced" + aw-tool-tip="{{ state._buttonText }}" + data-tip-watch="state._buttonText" + data-placement="top" >