mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-29 11:44:28 +01:00
Fixed resource usage display in domain list
This commit is contained in:
@@ -104,10 +104,28 @@
|
||||
<DNSStatusChip :status="item.dns_global_status" />
|
||||
</td>
|
||||
<td>
|
||||
<v-progress-linear v-model="item.allocated_quota_in_percent" />
|
||||
<v-progress-linear
|
||||
v-if="item.message_limit"
|
||||
:color="
|
||||
item.sent_messages_in_percent < 80 ? 'primary' : 'warning'
|
||||
"
|
||||
:model-value="item.sent_messages_in_percent"
|
||||
/>
|
||||
<span v-else>
|
||||
{{ $gettext('Unlimited') }}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<v-progress-linear v-model="item.allocated_quota_in_percent" />
|
||||
<v-progress-linear
|
||||
v-if="item.quota !== '0'"
|
||||
:color="
|
||||
item.allocated_quota_in_percent < 80 ? 'primary' : 'warning'
|
||||
"
|
||||
:model-value="item.allocated_quota_in_percent"
|
||||
/>
|
||||
<span v-else>
|
||||
{{ $gettext('Unlimited') }}
|
||||
</span>
|
||||
</td>
|
||||
<td v-if="canSetRole">
|
||||
<div class="text-right">
|
||||
|
||||
@@ -26,11 +26,18 @@
|
||||
}}</v-col>
|
||||
<v-col v-else cols="6">{{ domain.default_mailbox_quota }} MB</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="domain.message_limit !== undefined">
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Daily sending limit') }}</v-col>
|
||||
<v-col cols="6"
|
||||
<v-col
|
||||
v-if="
|
||||
domain.message_limit !== undefined && domain.message_limit !== null
|
||||
"
|
||||
cols="6"
|
||||
>{{ domain.message_limit }} {{ $gettext('messages') }}</v-col
|
||||
>
|
||||
<v-col v-else cols="6">
|
||||
{{ $gettext('Unlimited') }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Mailboxes') }}</v-col>
|
||||
|
||||
Reference in New Issue
Block a user