From 67182b75b553ea20543966b93b52052dcfdc80d9 Mon Sep 17 00:00:00 2001 From: fnuesse Date: Sun, 19 May 2019 16:52:50 +0200 Subject: [PATCH 1/2] removed cached vault from vaultservice Signed-off-by: fnuesse --- js/app/controllers/credential.js | 5 +++-- js/app/services/vaultservice.js | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) 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; } }; From 8f38367547c7276e602b7815bd1dba780a051cf8 Mon Sep 17 00:00:00 2001 From: fnuesse Date: Sun, 19 May 2019 17:05:08 +0200 Subject: [PATCH 2/2] removed commented code Signed-off-by: fnuesse --- js/app/controllers/credential.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index 49b77214..b5ca9302 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -540,8 +540,6 @@ } $scope.active_vault = null; $scope.credentials = []; - //$scope.$parent.selectedVault = false; - //window.location.reload(); VaultService.clearVaultService(); });