From 74f7630b2dd8680181af668592bd03e7a675eeaa Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:44:13 +0700 Subject: [PATCH] fix: button still show on create --- src/pages/03_customer-management/MainPage.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index a1ab9eea..907feaee 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -2035,7 +2035,10 @@ const emptyCreateDialog = ref(false); type="button" class="q-ml-sm" @click="customerFormStore.addCurrentCustomerBranch()" - v-if="customerFormState.branchIndex === -1" + v-if=" + customerFormState.branchIndex === -1 && + !!customerFormState.editCustomerId + " :disabled="!customerFormState.readonly" />