Use storageQuota instead of quotaLimit in the mailbox list

This commit is contained in:
Johannes Zellner
2025-12-01 17:22:58 +01:00
parent 58cf7c720f
commit bc47e30ad3
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ defineExpose({
active.value = m ? m.active : true;
enablePop3.value = m ? m.enablePop3 : false;
storageQuotaEnabled.value = m && m.storageQuota ? true : false;
storageQuota.value = m ? m.storageQuota : 5*1000*1000*1000;
storageQuota.value = m && m.storageQuota ? m.storageQuota : 5*1000*1000*1000;
usersAndGroupsAndApps.value = [];
if (props.users.length) usersAndGroupsAndApps.value.push({ separator: true, label: 'Users' });
+1 -2
View File
@@ -205,7 +205,6 @@ async function refresh() {
async function onMailboxDialogSuccess(mailbox) {
await refreshDomain(mailbox.domain);
await refreshDomainUsage(mailbox.domain);
}
onMounted(async () => {
@@ -277,7 +276,7 @@ onMounted(async () => {
<span v-else>{{ $t('main.loadingPlaceholder') }} ...</span>
</template>
<template #storageQuota="mailbox">
<span v-if="cachedMailboxUsage[mailbox.fullName] && typeof cachedMailboxUsage[mailbox.fullName].quotaLimit !== 'undefined'">{{ prettyDecimalSize(cachedMailboxUsage[mailbox.fullName].quotaLimit) }}</span>
<span v-if="mailbox.storageQuota > 0">{{ prettyDecimalSize(mailbox.storageQuota) }}</span>
<span v-else>-</span>
</template>
<template #actions="mailbox">