mailbox: show correct usage for fresh mailboxes

This commit is contained in:
Girish Ramakrishnan
2026-01-14 11:40:32 +01:00
parent 51c6c37ea6
commit 1f7b0c076c
+2 -1
View File
@@ -268,7 +268,8 @@ onMounted(async () => {
<TableView :columns="columns" :model="filteredMailboxes" :busy="busy" :fixed-layout="true" :placeholder="$t(searchFilter ? 'email.incoming.mailboxes.noMatchesPlaceholder' : 'email.incoming.mailboxes.emptyPlaceholder')">
<template #aliases="mailbox">{{ mailbox.aliases.map(a => a.name + '@' + a.domain).join(' ') }}</template>
<template #usage="mailbox">
<span v-if="cachedMailboxUsage[mailbox.fullName].diskSize">{{ prettyDecimalSize(cachedMailboxUsage[mailbox.fullName].diskSize) }}</span>
<!-- usage.diskSize can be missing for newly created mailboxes -->
<span v-if="cachedMailboxUsage[mailbox.fullName]">{{ prettyDecimalSize(cachedMailboxUsage[mailbox.fullName].diskSize) || '-' }}</span>
<span v-else>{{ $t('main.loadingPlaceholder') }} ...</span>
</template>
<template #storageQuota="mailbox">