1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-07-09 12:44:56 +02:00

logout issues with cache fixed. updated chrome store images

This commit is contained in:
Kyle Spearrin 2016-09-22 17:00:56 -04:00
parent f1792c6be6
commit 3f95c3a7ea
7 changed files with 11 additions and 3 deletions

View File

@ -72,6 +72,8 @@
userService.clearEmail(function () {
siteService.clear(userId, function () {
folderService.clear(userId, function () {
$rootScope.vaultSites = null;
$rootScope.vaultFolders = null;
callback();
});
});

View File

@ -22,7 +22,7 @@
<p>
There are no folders to list.
<a ui-sref="addFolder({animation: 'in-slide-up'})" style="margin-top: 20px;"
class="btn btn-link btn-lg btn-block">Add a Folder</a>
class="btn btn-link btn-block">Add a Folder</a>
</p>
</div>
<div class="page-loading" ng-if="!loaded">

View File

@ -82,8 +82,10 @@ function initFolderService() {
}
Q.all(promises).then(function () {
self.decryptedFolderCache = decFolders;
deferred.resolve(self.decryptedFolderCache);
if (decFolders.length > 0) {
self.decryptedFolderCache = decFolders;
}
deferred.resolve(decFolders);
});
});
@ -177,6 +179,8 @@ function initFolderService() {
throw 'callback function required';
}
var self = this;
chrome.storage.local.remove('folders_' + userId, function () {
self.decryptedFolderCache = null;
callback();

View File

@ -191,6 +191,8 @@ function initSiteService() {
throw 'callback function required';
}
var self = this;
chrome.storage.local.remove('sites_' + userId, function () {
self.decryptedSiteCache = null;
callback();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB