mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fix replace/revert functionality on secret input fields
This commit is contained in:
parent
13d84b8d35
commit
b5644ed65b
@ -23,7 +23,7 @@ function EditCredentialsController (models, $state, $scope, strings, componentsS
|
||||
};
|
||||
|
||||
$scope.$watch('$state.current.name', (value) => {
|
||||
if (/credentials.edit($|\.organization$)/.test(value)) {
|
||||
if (/credentials.edit($|\.organization$|\.credentialType$)/.test(value)) {
|
||||
vm.tab.details._active = true;
|
||||
vm.tab.permissions._active = false;
|
||||
} else {
|
||||
|
||||
@ -37,6 +37,12 @@ function AtInputSecretController (baseInputController) {
|
||||
vm.check();
|
||||
};
|
||||
|
||||
vm.toggleRevertReplace = () => {
|
||||
scope.state._isBeingReplaced = !scope.state._isBeingReplaced;
|
||||
|
||||
vm.onRevertReplaceToggle();
|
||||
};
|
||||
|
||||
vm.toggleShowHide = () => {
|
||||
if (scope.type === 'password') {
|
||||
scope.type = 'text';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user