From 555b5a663c46d1fbbaa5ff133455ae9d8debe3fc Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 10 May 2024 18:06:40 +0200 Subject: [PATCH] feat: role router --- src/pages/Account/Role/AccountRoles.vue | 14 ++----- src/pages/Account/Role/Card/RoleCard.vue | 15 ++++++++ src/router/modules/account.js | 6 +-- src/router/modules/index.js | 2 + src/router/modules/role.js | 47 ++++++++++++++++++++++++ src/router/modules/worker.js | 1 - src/router/routes.js | 2 + 7 files changed, 71 insertions(+), 16 deletions(-) create mode 100644 src/pages/Account/Role/Card/RoleCard.vue create mode 100644 src/router/modules/role.js diff --git a/src/pages/Account/Role/AccountRoles.vue b/src/pages/Account/Role/AccountRoles.vue index 910a6f124..fe184688b 100644 --- a/src/pages/Account/Role/AccountRoles.vue +++ b/src/pages/Account/Role/AccountRoles.vue @@ -4,7 +4,6 @@ import { useRouter } from 'vue-router'; import { useStateStore } from 'stores/useStateStore'; import { toDate } from 'filters/index'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; -import AccountFilter from '../AccountFilter.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import CardList from 'src/components/ui/CardList.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue'; @@ -14,8 +13,6 @@ import { useSummaryDialog } from 'src/composables/useSummaryDialog'; const stateStore = useStateStore(); const router = useRouter(); const { t } = useI18n(); -const { viewSummary } = useSummaryDialog(); - const STATE_COLOR = { pending: 'warning', managed: 'info', @@ -30,24 +27,19 @@ function stateColor(code) { function navigate(event, id) { if (event.ctrlKey || event.metaKey) return window.open(`${getApiUrl()}/#/account/${id}/summary`); - router.push({ path: `/account/${id}` }); + router.push({ path: `/account/role/${id}` }); }