fix: button still show on create

This commit is contained in:
Methapon2001 2024-08-14 09:44:13 +07:00
parent 87f522b39f
commit 74f7630b2d

View file

@ -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"
/>
</div>