From c4812666548912ff8aecb2cca5b76c298a3dcedc Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 7 Jul 2025 12:42:52 +0700 Subject: [PATCH] refactor: enhance access control and visibility logic across various components --- .../04_property-management/FormProperty.vue | 16 +++++++++------- src/components/TreeComponent.vue | 13 +------------ src/pages/04_property-managment/MainPage.vue | 18 +++++++++++++++--- .../04_property-managment/PropertyDialog.vue | 4 +++- src/pages/05_quotation/PaymentForm.vue | 2 +- src/pages/05_quotation/QuotationForm.vue | 4 +++- src/pages/11_credit-note/FormPage.vue | 4 ++-- src/pages/12_debit-note/FormPage.vue | 12 +++++++++--- 8 files changed, 43 insertions(+), 30 deletions(-) diff --git a/src/components/04_property-management/FormProperty.vue b/src/components/04_property-management/FormProperty.vue index 34067e8e..6be9f885 100644 --- a/src/components/04_property-management/FormProperty.vue +++ b/src/components/04_property-management/FormProperty.vue @@ -48,6 +48,7 @@ defineProps<{ readonly?: boolean; onDrawer?: boolean; inputOnly?: boolean; + disableToggle?: boolean; }>(); defineEmits<{ @@ -76,6 +77,7 @@ defineEmits<{ import { BranchWithChildren } from 'stores/branch/types'; import KebabAction from './shared/KebabAction.vue'; -import { isRoleInclude } from 'stores/utils'; const nodes = defineModel<(any | BranchWithChildren)[]>('nodes', { default: [], @@ -120,17 +119,7 @@ defineEmits<{ />