summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-10-07 17:16:51 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-10-10 14:51:13 +0200
commite3717fd466c7a17668deb39884bd7bd0e9b4ff3d (patch)
tree4c987f2cff88d90bb106785a6a0e9f90b4a38406 /settings
parent2dcd97bf144fac80d68df813d9d002bcbe3e1d6b (diff)
downloadnextcloud-server-e3717fd466c7a17668deb39884bd7bd0e9b4ff3d.tar.gz
nextcloud-server-e3717fd466c7a17668deb39884bd7bd0e9b4ff3d.zip
Improve user list rendering perf by not resorting after every add (#26282)
The call to UserList.add() was wrong and was passing "user.lastLogin" as the sort argument which would cause the list to be resorted over and over again for every added item after loading the next page of users.
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index f24bf82209b..271188875da 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -398,7 +398,7 @@ var UserList = {
if(UserList.has(user.name)) {
return true;
}
- var $tr = UserList.add(user, user.lastLogin, false, user.backend);
+ var $tr = UserList.add(user, false);
trs.push($tr);
loadedUsers++;
});