summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-27 16:35:33 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-27 22:13:19 +0200
commitf09a70e9b56a7f83857dad684cc4574a08db3421 (patch)
tree3d681997a775933fc811f56cd754ee481b61f655 /settings/js/users
parentd54253d4e4b7a61ad6f1ed1a68720fc4573f29c4 (diff)
downloadnextcloud-server-f09a70e9b56a7f83857dad684cc4574a08db3421.tar.gz
nextcloud-server-f09a70e9b56a7f83857dad684cc4574a08db3421.zip
Quota bar fix on user list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/users.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 6fb74e1ba63..8b97485e1b2 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -571,7 +571,12 @@ var UserList = {
//asymptotic curve approaching 50% at 10GB to visualize used stace with infinite quota
usedQuota = 95 * (1 - (1 / (usedInGB + 1)));
}
- $tr.find('.quota_progress').width(usedQuota + '%');
+ $tr.find('.quota-user-progress').val(usedQuota);
+ if (usedQuota > 80) {
+ $tr.find('.quota-user-progress').addClass('warn');
+ } else {
+ $tr.find('.quota-user-progress').removeClass('warn');
+ }
},
/**