From 8320a75e61c5e9d6cfbd3f1ec10143e333ed851c Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 3 Jun 2024 09:03:37 -0300 Subject: [PATCH] make searchbar work --- .../Account/{AccountAlias.vue => AccountAliasList.vue} | 0 src/pages/Account/Alias/Card/AliasUsers.vue | 4 ++++ src/router/modules/account.js | 8 ++++---- src/router/modules/mailAlias.js | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) rename src/pages/Account/{AccountAlias.vue => AccountAliasList.vue} (100%) diff --git a/src/pages/Account/AccountAlias.vue b/src/pages/Account/AccountAliasList.vue similarity index 100% rename from src/pages/Account/AccountAlias.vue rename to src/pages/Account/AccountAliasList.vue diff --git a/src/pages/Account/Alias/Card/AliasUsers.vue b/src/pages/Account/Alias/Card/AliasUsers.vue index 1bc91d3ba..39f881a4e 100644 --- a/src/pages/Account/Alias/Card/AliasUsers.vue +++ b/src/pages/Account/Alias/Card/AliasUsers.vue @@ -7,9 +7,11 @@ import VnPaginate from 'components/ui/VnPaginate.vue'; import { useVnConfirm } from 'composables/useVnConfirm'; import { useArrayData } from 'composables/useArrayData'; +import useNotify from 'src/composables/useNotify.js'; import axios from 'axios'; const { t } = useI18n(); +const { notify } = useNotify(); const route = useRoute(); const { openConfirmationModal } = useVnConfirm(); @@ -46,6 +48,7 @@ const columns = computed(() => [ const deleteAlias = async (row) => { try { await axios.delete(`${urlPath.value}/${row.id}`); + notify(t('User removed'), 'positive'); fetchAliases(); } catch (error) { console.error(error); @@ -113,5 +116,6 @@ const fetchAliases = () => paginateRef.value.fetch(); es: User will be removed from alias: El usuario será borrado del alias Are you sure you want to continue?: ¿Seguro que quieres continuar? + User removed: Usuario borrado Delete: Eliminar diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 38473e052..e13215afc 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'AccountMain' }, menus: { - main: ['AccountList', 'AccountAlias'], + main: ['AccountList', 'AccountAliasList'], card: [], }, children: [ @@ -31,13 +31,13 @@ export default { component: () => import('src/pages/Account/AccountList.vue'), }, { - path: 'alias', - name: 'AccountAlias', + path: 'alias-list', + name: 'AccountAliasList', meta: { title: 'alias', icon: 'email', }, - component: () => import('src/pages/Account/AccountAlias.vue'), + component: () => import('src/pages/Account/AccountAliasList.vue'), }, ], }, diff --git a/src/router/modules/mailAlias.js b/src/router/modules/mailAlias.js index 623c76b25..8e0f8abdc 100644 --- a/src/router/modules/mailAlias.js +++ b/src/router/modules/mailAlias.js @@ -9,7 +9,7 @@ export default { moduleName: 'Alias', }, component: RouterView, - redirect: { name: 'AccountAlias' }, + redirect: { name: 'AccountAliasList' }, menus: { main: [], card: ['AliasBasicData', 'AliasUsers'],