From ae75908e46e13f8dfbd242fc856836bb30c9c9df Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 18 Jun 2024 10:53:21 +0200 Subject: [PATCH] refactor: simplify code --- src/pages/Account/AccountCreate.vue | 104 +++++++------------ src/pages/Account/Card/AccountBasicData.vue | 34 ++---- src/pages/Account/Card/AccountPrivileges.vue | 73 +++++-------- 3 files changed, 78 insertions(+), 133 deletions(-) diff --git a/src/pages/Account/AccountCreate.vue b/src/pages/Account/AccountCreate.vue index 486a9b06b..1c0f9fee6 100644 --- a/src/pages/Account/AccountCreate.vue +++ b/src/pages/Account/AccountCreate.vue @@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; 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 VnInput from 'src/components/common/VnInput.vue'; @@ -29,7 +28,6 @@ const redirectToAccountBasicData = (_, { id }) => { @on-fetch="(data) => (rolesOptions = data)" auto-load /> - { @on-data-saved="redirectToAccountBasicData" > diff --git a/src/pages/Account/Card/AccountBasicData.vue b/src/pages/Account/Card/AccountBasicData.vue index 067c9c287..3a9d5c9bf 100644 --- a/src/pages/Account/Card/AccountBasicData.vue +++ b/src/pages/Account/Card/AccountBasicData.vue @@ -33,30 +33,16 @@ watch( @on-data-saved="formModelRef.fetch()" > diff --git a/src/pages/Account/Card/AccountPrivileges.vue b/src/pages/Account/Card/AccountPrivileges.vue index 64efb3cda..f1f24f19b 100644 --- a/src/pages/Account/Card/AccountPrivileges.vue +++ b/src/pages/Account/Card/AccountPrivileges.vue @@ -1,24 +1,17 @@