fix: add customer btn

This commit is contained in:
puriphatt 2024-07-03 06:52:44 +00:00
parent 805603e9c2
commit 63aca38e83

View file

@ -1255,8 +1255,9 @@ watch([inputSearch, currentStatus], async () => {
</script>
<template>
<ButtonAddComponent style="z-index: 999" v-if="selectorLabel === 'EMPLOYER'">
<ButtonAddComponent style="z-index: 999">
<q-fab-action
v-if="selectorLabel === 'EMPLOYER' || !selectorLabel"
id="add-customer-legal-entity"
style="color: white; background-color: hsla(var(--purple-11-hsl))"
@click="triggerCreate('CORP')"
@ -1267,6 +1268,7 @@ watch([inputSearch, currentStatus], async () => {
label-position="left"
/>
<q-fab-action
v-if="selectorLabel === 'EMPLOYER' || !selectorLabel"
id="add-customer-natural-person"
:label="$t('add') + ' ' + $t('customerNaturalPerson')"
external-label
@ -1276,10 +1278,8 @@ watch([inputSearch, currentStatus], async () => {
padding="xs"
icon="mdi-account-plus"
></q-fab-action>
</ButtonAddComponent>
<ButtonAddComponent style="z-index: 999" v-if="selectorLabel === 'EMPLOYEE'">
<q-fab-action
v-if="selectorLabel === 'EMPLOYEE' || !selectorLabel"
:label="$t('add') + ' ' + $t('EMPLOYEE')"
external-label
label-position="left"