mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-06 16:32:01 -05:00
Add kind column to credential list
* Populate kind column with credential_type name * Fix replace/revert input group button sizing
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn at-InputGroup-button">
|
||||
<button class="btn at-ButtonHollow--white at-Input-button--fixed-sm"
|
||||
<button class="btn at-ButtonHollow--white"
|
||||
ng-class="{
|
||||
'at-Input-button--fixed-xs': mode === 'input',
|
||||
'at-Input-button--fixed-sm': mode === 'encrypted'
|
||||
}"
|
||||
ng-disabled="!state._enableToggle && (state._disabled || form.disabled)"
|
||||
ng-click="vm.toggle()">
|
||||
{{ state._buttonText }}
|
||||
|
||||
Reference in New Issue
Block a user