summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-27 17:13:26 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-27 17:13:26 +0200
commit1aa0990ccd98a3acb40255c2af39d408a30268fa (patch)
tree481bf8af8b941f59dafbfb145fc0298cc9814ccc /settings/src
parent02de67773c5ce1e38a90ce45b60ce249ed9a4042 (diff)
downloadnextcloud-server-1aa0990ccd98a3acb40255c2af39d408a30268fa.tar.gz
nextcloud-server-1aa0990ccd98a3acb40255c2af39d408a30268fa.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..e80e703dceb 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 OC.Util.humanFileSize(this.user.quota.used) + ' ' + t('settings', 'used');
+ }
+ return t('settings', 'unknown space used');
+ },
usedQuota() {
let quota = this.user.quota.quota;
if (quota > 0) {