summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-28 09:03:04 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-28 09:03:04 +0200
commit1e5bcd04966fb610f72a82df3fe027bd97e1c28f (patch)
tree7a3a34dc63e7708b74450b8413cffd78734f3f44 /settings/src
parentc2a9899656468f7f6c0820410f99655219697d99 (diff)
downloadnextcloud-server-1e5bcd04966fb610f72a82df3fe027bd97e1c28f.tar.gz
nextcloud-server-1e5bcd04966fb610f72a82df3fe027bd97e1c28f.zip
Add back the total used space per user
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/components/userList/userRow.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue
index 1b1bb1b5fc4..138f855eaf0 100644
--- a/settings/src/components/userList/userRow.vue
+++ b/settings/src/components/userList/userRow.vue
@@ -84,7 +84,7 @@
<span slot="noResult">{{t('settings', 'No results')}}</span>
</multiselect>
</div>
- <div class="quota" :class="{'icon-loading-small': loading.quota}">
+ <div class="quota" :class="{'icon-loading-small': loading.quota}" v-tooltip.auto="usedSpace">
<multiselect :value="userQuota" :options="quotaOptions" :disabled="loading.quota||loading.all"
tag-placeholder="create" :placeholder="t('settings', 'Select user quota')"
label="label" track-by="id" class="multiselect-vue"
@@ -215,6 +215,12 @@ export default {
},
/* QUOTA MANAGEMENT */
+ usedSpace() {
+ if (this.user.quota.used) {
+ return t('settings', '{size} used', {size: OC.Util.humanFileSize(this.user.quota.used)});
+ }
+ return t('settings', '{size} used', {size: OC.Util.humanFileSize(0)});
+ },
usedQuota() {
let quota = this.user.quota.quota;
if (quota > 0) {