Fix replace/revert functionality on secret input fields

This commit is contained in:
gconsidine
2017-12-05 10:39:15 -05:00
parent 13d84b8d35
commit b5644ed65b
2 changed files with 7 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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';