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
No known key found for this signature in database
GPG Key ID: CC78E4D5913BB71D
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) => {
if (/credentials.edit($|\.organization$)/.test(value)) {
if (/credentials.edit($|\.organization$|\.credentialType$)/.test(value)) {
vm.tab.details._active = true;
vm.tab.permissions._active = false;
} else {

View File

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