mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-17 15:37:57 +01:00
adjust vault login chunking
This commit is contained in:
parent
6825967cb9
commit
aa7a3c442c
@ -73,19 +73,19 @@
|
||||
|
||||
$rootScope.vaultLogins = $scope.logins = $filter('orderBy')(decLogins, ['sort', 'name', 'username']);
|
||||
|
||||
//var chunks = chunk($rootScope.vaultLogins, 300);
|
||||
//$scope.logins = chunks[0];
|
||||
//var delay = 200;
|
||||
//angular.forEach(chunks, function (value, index) {
|
||||
// delay += 200;
|
||||
var chunks = chunk($rootScope.vaultLogins, 400);
|
||||
$scope.logins = chunks[0];
|
||||
var delay = 200;
|
||||
angular.forEach(chunks, function (value, index) {
|
||||
delay += 200;
|
||||
|
||||
// // skip the first chuck
|
||||
// if (index > 0) {
|
||||
// $timeout(function () {
|
||||
// Array.prototype.push.apply($scope.logins, value);
|
||||
// }, delay);
|
||||
// }
|
||||
//});
|
||||
// skip the first chuck
|
||||
if (index > 0) {
|
||||
$timeout(function () {
|
||||
Array.prototype.push.apply($scope.logins, value);
|
||||
}, delay);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function sortScopedLoginData() {
|
||||
|
Loading…
Reference in New Issue
Block a user