From 67b3888f8c8c16b446434321f34dd50f9f0ab015 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 31 May 2024 10:10:15 +0200 Subject: [PATCH] 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') }}