feat: add button

This commit is contained in:
Methapon2001 2024-08-09 17:58:35 +07:00
parent d1afb438ea
commit 99fd73e4c5

View file

@ -562,8 +562,10 @@ watch(
</script> </script>
<template> <template>
<ButtonAddComponent style="z-index: 999"> <ButtonAddComponent
<div v-if="$route.name === 'CustomerManagement'"> style="z-index: 999"
v-if="$route.name === 'CustomerManagement'"
>
<q-fab-action <q-fab-action
v-if="currentTab === 'employer'" v-if="currentTab === 'employer'"
id="add-customer-legal-entity" id="add-customer-legal-entity"
@ -597,25 +599,6 @@ watch(
padding="xs" padding="xs"
icon="mdi-account-plus-outline" icon="mdi-account-plus-outline"
/> />
</div>
<div v-else>
<q-fab-action
id="add-branch"
:style="{
color: 'white',
'background-color':
currentCustomer?.customerType === 'CORP'
? 'hsla(var(--violet-11-hsl))'
: 'hsla(var(--pink-6-hsl))',
}"
@click="console.log('add-branch')"
padding="xs"
icon="mdi-office-building-outline"
:label="$t('formDialogTitleCreateSubBranch')"
external-label
label-position="left"
/>
</div>
</ButtonAddComponent> </ButtonAddComponent>
<div class="column full-height no-wrap"> <div class="column full-height no-wrap">