mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Fix replace/revert functionality on secret input fields
This commit is contained in:
@@ -23,7 +23,7 @@ function EditCredentialsController (models, $state, $scope, strings, componentsS
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch('$state.current.name', (value) => {
|
$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.details._active = true;
|
||||||
vm.tab.permissions._active = false;
|
vm.tab.permissions._active = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ function AtInputSecretController (baseInputController) {
|
|||||||
vm.check();
|
vm.check();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vm.toggleRevertReplace = () => {
|
||||||
|
scope.state._isBeingReplaced = !scope.state._isBeingReplaced;
|
||||||
|
|
||||||
|
vm.onRevertReplaceToggle();
|
||||||
|
};
|
||||||
|
|
||||||
vm.toggleShowHide = () => {
|
vm.toggleShowHide = () => {
|
||||||
if (scope.type === 'password') {
|
if (scope.type === 'password') {
|
||||||
scope.type = 'text';
|
scope.type = 'text';
|
||||||
|
|||||||
Reference in New Issue
Block a user