1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

loading ciphers false after first chunk

This commit is contained in:
Kyle Spearrin
2018-03-19 11:33:52 -04:00
parent 7a50c0536c
commit 39471d0421

View File

@@ -82,9 +82,8 @@
function loadCipherData(decCiphers) { function loadCipherData(decCiphers) {
$rootScope.vaultCiphers = $scope.ciphers = $filter('orderBy')(decCiphers, ['sort', 'name', 'subTitle']); $rootScope.vaultCiphers = $scope.ciphers = $filter('orderBy')(decCiphers, ['sort', 'name', 'subTitle']);
$scope.loadingCiphers = false;
var chunks = chunk($rootScope.vaultCiphers, 400); var chunks = chunk($rootScope.vaultCiphers, 200);
if (chunks.length > 0) { if (chunks.length > 0) {
$scope.ciphers = chunks[0]; $scope.ciphers = chunks[0];
var delay = 200; var delay = 200;
@@ -99,6 +98,8 @@
} }
}); });
} }
$scope.loadingCiphers = false;
} }
function sortScopedCipherData() { function sortScopedCipherData() {