Better quota display when not restricted

This commit is contained in:
Spitap
2023-09-01 16:17:56 +02:00
parent 5b6a9d3ecc
commit 6eb31677e8
2 changed files with 8 additions and 3 deletions
@@ -14,11 +14,13 @@
</v-row>
<v-row>
<v-col cols="6"><translate>Quota</translate></v-col>
<v-col cols="6">{{ domain.quota }} <translate>MB</translate></v-col>
<v-col cols="6" v-if="domain.quota === '0'"><translate>Unlimited</translate></v-col>
<v-col cols="6" v-else>{{ domain.quota }} <translate>MB</translate></v-col>
</v-row>
<v-row>
<v-col cols="6"><translate>Default mailbox quota</translate></v-col>
<v-col cols="6">{{ domain.default_mailbox_quota }} MB</v-col>
<v-col cols="6" v-if="domain.default_mailbox_quota === '0'"><translate>Unlimited</translate></v-col>
<v-col cols="6" v-else>{{ domain.default_mailbox_quota }} MB</v-col>
</v-row>
<v-row v-if="domain.sending_limit !== undefined">
<v-col cols="6"><translate>Daily sending limit</translate></v-col>
@@ -32,7 +32,10 @@
<template v-if="account.mailbox">
<v-row>
<v-col cols="6"><translate>Quota</translate></v-col>
<v-col cols="6">
<v-col cols="6" v-if="account.mailbox.quota === '0'">
<translate>Unlimited</translate>
</v-col>
<v-col cols="6" v-else>
<v-progress-linear
:color="account.mailbox.quota_usage < 80 ? 'primary' : 'warning'"
:value="account.mailbox.quota_usage"