Use storageQuota instead of quotaLimit in the mailbox list
This commit is contained in:
@@ -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' });
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user