feat: add button
This commit is contained in:
parent
d1afb438ea
commit
99fd73e4c5
1 changed files with 37 additions and 54 deletions
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue