diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index 8b1b015c..49b77214 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -540,8 +540,9 @@ } $scope.active_vault = null; $scope.credentials = []; -// $scope.$parent.selectedVault = false; - window.location.reload(); + //$scope.$parent.selectedVault = false; + //window.location.reload(); + VaultService.clearVaultService(); }); diff --git a/js/app/services/vaultservice.js b/js/app/services/vaultservice.js index b24577d2..767466b5 100644 --- a/js/app/services/vaultservice.js +++ b/js/app/services/vaultservice.js @@ -131,6 +131,9 @@ return response; } }); + }, + clearVaultService: function () { + _activeVault=null; } };