From 64c21aa5d924de23125e8ee846e343a8ef870962 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 1 Jul 2024 17:53:48 +0200 Subject: [PATCH 01/19] refs #7355 fix vnTable --- src/pages/Account/AccountList.vue | 120 +++++++++++++++++------------- 1 file changed, 68 insertions(+), 52 deletions(-) diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index dee019fed..d645a599a 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -2,7 +2,7 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import { computed, ref } from 'vue'; - +import VnTable from 'components/VnTable/VnTable.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnLv from 'src/components/ui/VnLv.vue'; @@ -47,6 +47,52 @@ const exprBuilder = (param, value) => { } }; +const columns = computed(() => [ + { + align: 'left', + name: 'id', + label: t('id'), + isId: true, + field: 'id', + cardVisible: true, + }, + { + align: 'left', + name: 'nickname', + label: t('nickname'), + field: 'nickname', + component: 'input', + columnField: { + component: null, + }, + cardVisible: true, + create: true, + }, + { + align: 'left', + name: 'name', + label: t('name'), + field: 'name', + component: 'input', + columnField: { + component: null, + }, + cardVisible: true, + create: true, + }, + { + align: 'right', + label: '', + name: 'tableActions', + actions: [ + { + title: t('View Summary'), + icon: 'preview', + action: (row) => viewSummary(row.id, AccountSummary), + }, + ], + }, +]); const getApiUrl = () => new URL(window.location).origin; const navigate = (event, id) => { @@ -90,55 +136,25 @@ const openCreateModal = () => accountCreateDialogRef.value.show(); - -
- - - -
- - - - - - - {{ t('account.card.newUser') }} - - -
+ + From ae01aa614bddd4f24d32c7daf8f9cf2fbc5de633 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 2 Jul 2024 17:30:45 +0200 Subject: [PATCH 02/19] refs #7355 mail alias acls --- src/pages/Account/AccountAcls.vue | 144 ++++++++++++++---------- src/pages/Account/AccountAliasList.vue | 98 ++++++++-------- src/pages/Account/Role/AccountRoles.vue | 86 ++++++-------- 3 files changed, 166 insertions(+), 162 deletions(-) diff --git a/src/pages/Account/AccountAcls.vue b/src/pages/Account/AccountAcls.vue index bd7f0f9ae..3a8c55853 100644 --- a/src/pages/Account/AccountAcls.vue +++ b/src/pages/Account/AccountAcls.vue @@ -1,8 +1,8 @@ From 06f88c8cb35beb7f2ebd4eac1436bf1bf43bc686 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 10 Jul 2024 13:36:08 +0200 Subject: [PATCH 09/19] refs #7355 fix alias summary --- src/pages/Account/Alias/Card/AliasSummary.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Account/Alias/Card/AliasSummary.vue b/src/pages/Account/Alias/Card/AliasSummary.vue index cedae28b7..b2dc1f0fc 100644 --- a/src/pages/Account/Alias/Card/AliasSummary.vue +++ b/src/pages/Account/Alias/Card/AliasSummary.vue @@ -28,6 +28,7 @@ const entityId = computed(() => $props.id || route.params.id); ref="summary" :url="`MailAliases/${entityId}`" @on-fetch="(data) => (alias = data)" + data-key="MailAliasesSummary" >