From 5b9d64128b6ac8c0d9090d57769e308be96a1268 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 31 May 2024 09:45:01 +0200 Subject: [PATCH 1/3] fix: AccountFilter --- src/pages/Account/AccountFilter.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Account/AccountFilter.vue b/src/pages/Account/AccountFilter.vue index 72893472f..784c925bc 100644 --- a/src/pages/Account/AccountFilter.vue +++ b/src/pages/Account/AccountFilter.vue @@ -55,7 +55,7 @@ const rolesOptions = ref([]); Date: Fri, 31 May 2024 10:10:15 +0200 Subject: [PATCH 2/3] feat: AccountForm as dialog --- src/pages/Account/AccountCreate.vue | 165 +++++++++++++--------------- src/pages/Account/AccountList.vue | 22 ++-- 2 files changed, 89 insertions(+), 98 deletions(-) diff --git a/src/pages/Account/AccountCreate.vue b/src/pages/Account/AccountCreate.vue index 204c8ffeb..486a9b06b 100644 --- a/src/pages/Account/AccountCreate.vue +++ b/src/pages/Account/AccountCreate.vue @@ -3,19 +3,14 @@ import { reactive, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; -import FormModel from 'components/FormModel.vue'; +import FormModelPopup from 'components/FormModelPopup.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import FetchData from 'components/FetchData.vue'; -import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; -import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import VnInput from 'src/components/common/VnInput.vue'; -import { useStateStore } from 'stores/useStateStore'; - const { t } = useI18n(); const router = useRouter(); -const stateStore = useStateStore(); const newAccountForm = reactive({ active: true, @@ -34,89 +29,77 @@ const redirectToAccountBasicData = (_, { id }) => { @on-fetch="(data) => (rolesOptions = data)" auto-load /> - - - - - - - + + + + diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index de9a13300..dee019fed 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -1,7 +1,7 @@ - - + + + + + {{ t('account.card.newUser') }} From c2dd7831d13e9d746e34bc526879cb6684f2fec3 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 31 May 2024 10:17:44 +0200 Subject: [PATCH 3/3] perf: remove unnecessary components --- src/pages/Account/Card/AccountDescriptor.vue | 11 +---------- src/pages/Account/locale/en.yml | 19 ++++++++++++++----- src/router/modules/account.js | 19 ++----------------- 3 files changed, 17 insertions(+), 32 deletions(-) diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue index 55ae92b92..f7a7a16cc 100644 --- a/src/pages/Account/Card/AccountDescriptor.vue +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -1,15 +1,10 @@