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