diff --git a/awx/ui/client/features/credentials/legacy.credentials.js b/awx/ui/client/features/credentials/legacy.credentials.js
index 95cda7e94a..b6cb9ffa51 100644
--- a/awx/ui/client/features/credentials/legacy.credentials.js
+++ b/awx/ui/client/features/credentials/legacy.credentials.js
@@ -35,7 +35,10 @@ function LegacyCredentialsService (pathService) {
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
return qs.search(path, $stateParams[`${list.iterator}_search`]);
}
- ]
+ ],
+ credentialType: ['CredentialTypeModel', CredentialType => {
+ return new CredentialType('get');
+ }]
}
};
diff --git a/awx/ui/client/lib/components/input/_index.less b/awx/ui/client/lib/components/input/_index.less
index 7ac1b4c392..087eaddfcb 100644
--- a/awx/ui/client/lib/components/input/_index.less
+++ b/awx/ui/client/lib/components/input/_index.less
@@ -47,12 +47,18 @@
.at-mixin-InputButton();
}
-.at-Input-button--fixed-sm {
+.at-Input-button--fixed-xs {
.at-mixin-InputButton();
min-width: @at-width-input-button-sm;
height: @at-height-input;
}
+.at-Input-button--fixed-sm {
+ .at-mixin-InputButton();
+ min-width: @at-width-input-button-md;
+ height: @at-height-input;
+}
+
.at-Input-button--fixed-md {
.at-mixin-InputButton();
display: inherit;
diff --git a/awx/ui/client/lib/components/input/secret.directive.js b/awx/ui/client/lib/components/input/secret.directive.js
index 3a5f02df33..5a0a9876e2 100644
--- a/awx/ui/client/lib/components/input/secret.directive.js
+++ b/awx/ui/client/lib/components/input/secret.directive.js
@@ -20,11 +20,13 @@ function AtInputSecretController (baseInputController) {
scope = _scope_;
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 {
+ scope.mode = 'encrypted';
scope.state._buttonText = vm.strings.get('REPLACE');
scope.state._placeholder = vm.strings.get('ENCRYPTED');
vm.toggle = vm.toggleRevertReplace;
diff --git a/awx/ui/client/lib/components/input/secret.partial.html b/awx/ui/client/lib/components/input/secret.partial.html
index b3d0026d40..2c1523e7e6 100644
--- a/awx/ui/client/lib/components/input/secret.partial.html
+++ b/awx/ui/client/lib/components/input/secret.partial.html
@@ -4,7 +4,11 @@
-