refactor: hide add customer at quotation
This commit is contained in:
parent
62b21f185e
commit
9e28126f80
2 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ defineProps<{
|
|||
employee?: boolean;
|
||||
title?: string;
|
||||
inputOnly?: boolean;
|
||||
hideAdd?: boolean;
|
||||
|
||||
onCreate?: boolean;
|
||||
}>();
|
||||
|
|
@ -151,7 +152,7 @@ onMounted(async () => {
|
|||
<template #option="{ scope }">
|
||||
<q-item
|
||||
clickable
|
||||
v-if="scope.index === 0"
|
||||
v-if="scope.index === 0 && !hideAdd"
|
||||
@click.stop="$emit('addCustomer')"
|
||||
>
|
||||
<q-item-section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue