refactor: send creatable disabled text

This commit is contained in:
Thanaphon Frappet 2024-12-12 12:05:56 +07:00 committed by Methapon2001
parent af3aa005a3
commit 2ac03f6dee

View file

@ -66,6 +66,11 @@ defineEmits<{
<SelectCustomer
v-model:value="customerBranchId"
:label="$t('quotation.customer')"
:creatable-disabled-text="
$t('form.error.selectField', {
field: $t('quotation.branchVirtual'),
})
"
@create="$emit('addCustomer')"
class="col-md-6 col-12"
:creatable-disabled="branchId === undefined"