mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
Added status indication on multiple pages
This commit is contained in:
@@ -80,9 +80,13 @@
|
||||
>
|
||||
{{ $gettext('Relay') }}
|
||||
</v-chip>
|
||||
<span v-if="!item.enabled" class="ml-2">
|
||||
({{ $gettext('disabled') }})
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<v-icon
|
||||
:color="item.enabled ? 'success' : 'error'"
|
||||
:icon="item.enabled ? 'mdi-check-circle' : 'mdi-close-circle'"
|
||||
variant="flat"
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
{{ item.domainalias_count }} aliases
|
||||
@@ -201,6 +205,7 @@ const busStore = useBusStore()
|
||||
|
||||
const domainHeaders = [
|
||||
{ title: $gettext('Name'), key: 'name' },
|
||||
{ title: $gettext('Enabled'), key: 'enabled', width: '5%' },
|
||||
{ title: $gettext('Aliases'), key: 'domainalias_count' },
|
||||
{
|
||||
title: $gettext('DNS status'),
|
||||
|
||||
@@ -40,6 +40,16 @@
|
||||
<v-col cols="6">{{ $gettext('Aliases') }}</v-col>
|
||||
<v-col cols="6">{{ domain.mbalias_count }}</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Enabled') }}</v-col>
|
||||
<v-col cols="6">
|
||||
<v-icon
|
||||
:color="domain.enabled ? 'success' : 'error'"
|
||||
:icon="domain.enabled ? 'mdi-check-circle' : 'mdi-close-circle'"
|
||||
variant="flat"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -31,6 +31,16 @@
|
||||
<v-col cols="6">{{ $gettext('Phone number') }}</v-col>
|
||||
<v-col cols="6">{{ account.phone_number }}</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Enabled') }}</v-col>
|
||||
<v-col cols="6">
|
||||
<v-icon
|
||||
:color="account.is_active ? 'success' : 'error'"
|
||||
:icon="account.is_active ? 'mdi-check-circle' : 'mdi-close-circle'"
|
||||
variant="flat"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<template v-if="account.mailbox">
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Quota') }} </v-col>
|
||||
|
||||
@@ -12,6 +12,16 @@
|
||||
<v-col cols="6">{{ $gettext('Modified') }}</v-col>
|
||||
<v-col cols="6">{{ $date(alias.last_modification) }}</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">{{ $gettext('Enabled') }}</v-col>
|
||||
<v-col cols="6">
|
||||
<v-icon
|
||||
:color="alias.enabled ? 'success' : 'error'"
|
||||
:icon="alias.enabled ? 'mdi-check-circle' : 'mdi-close-circle'"
|
||||
variant="flat"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="alias.expiry">
|
||||
<v-col cols="6">{{ $gettext('Expire at') }}</v-col>
|
||||
<v-col cols="6"></v-col>
|
||||
|
||||
@@ -59,6 +59,13 @@
|
||||
</router-link>
|
||||
</template>
|
||||
</template>
|
||||
<template #[`item.enabled`]="{ item }">
|
||||
<v-icon
|
||||
:color="item.enabled ? 'success' : 'error'"
|
||||
:icon="item.enabled ? 'mdi-check-circle' : 'mdi-close-circle'"
|
||||
variant="flat"
|
||||
/>
|
||||
</template>
|
||||
<template #[`item.tags`]="{ item }">
|
||||
<v-chip
|
||||
v-for="(tag, index) in item.tags"
|
||||
@@ -105,7 +112,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="js">
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
import MenuItems from '@/components/tools/MenuItems.vue'
|
||||
import ConfirmDialog from '@/components/tools/ConfirmDialog.vue'
|
||||
@@ -114,11 +121,12 @@ import accountsApi from '@/api/accounts'
|
||||
import aliasesApi from '@/api/aliases'
|
||||
import identitiesApi from '@/api/identities'
|
||||
|
||||
const { $gettext } = useGettext()
|
||||
const { $gettext, $pgettext } = useGettext()
|
||||
const router = useRouter()
|
||||
|
||||
const headers = ref([
|
||||
{ title: $gettext('Name'), key: 'identity' },
|
||||
{ title: $pgettext('female', 'Enabled'), key: 'enabled', width: '5%' },
|
||||
{ title: $gettext('Fullname/recipient'), key: 'name_or_rcpt' },
|
||||
{ title: $gettext('Tags'), key: 'tags' },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user