refactor: move event handler to its parent
This commit is contained in:
parent
f8ec82626c
commit
fabadd5b8e
1 changed files with 13 additions and 13 deletions
|
|
@ -519,24 +519,24 @@ watch(locale, () => {
|
||||||
dense
|
dense
|
||||||
id="hq-add-btn"
|
id="hq-add-btn"
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
if (!currentHq.id) {
|
||||||
|
triggerCreate('headOffice');
|
||||||
|
} else {
|
||||||
|
triggerCreate(
|
||||||
|
'subBranch',
|
||||||
|
currentHq.id,
|
||||||
|
currentHq.code,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
icon="pixelarticons:plus"
|
icon="pixelarticons:plus"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
style="color: var(--foreground); scale: 1.5"
|
style="color: var(--foreground); scale: 1.5"
|
||||||
@click="
|
|
||||||
() => {
|
|
||||||
if (!currentHq.id) {
|
|
||||||
triggerCreate('headOffice');
|
|
||||||
} else {
|
|
||||||
triggerCreate(
|
|
||||||
'subBranch',
|
|
||||||
currentHq.id,
|
|
||||||
currentHq.code,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue