Fix mailbox usage and quota sorting

This commit is contained in:
Johannes Zellner
2025-11-06 13:51:39 +01:00
parent 9bb71bd066
commit c35543af92
+7 -3
View File
@@ -39,10 +39,14 @@ const columns = {
},
usage: {
label: t('email.incoming.mailboxes.usage'),
sort: true,
sort: (a, b) => {
if (!a.diskSize) return -1;
if (!b.diskSize) return 1;
return a.diskSize - b.diskSize;
},
hideMobile: true,
},
quota: {
storageQuota: {
label: 'Quota',
sort: true,
hideMobile: true,
@@ -243,7 +247,7 @@ onMounted(async () => {
<span v-if="mailbox.usage || mailbox.usage === 0">{{ prettyDecimalSize(mailbox.usage.diskSize) }}</span>
<span v-else>{{ $t('main.loadingPlaceholder') }} ...</span>
</template>
<template #quota="mailbox">
<template #storageQuota="mailbox">
<span v-if="mailbox.usage && mailbox.usage.quotaLimit">{{ prettyDecimalSize(mailbox.usage.quotaLimit) }}</span>
</template>
<template #actions="mailbox">