refactor: hide add customer at quotation

This commit is contained in:
Thanaphon Frappet 2024-10-29 09:03:54 +07:00
parent 62b21f185e
commit 9e28126f80
2 changed files with 3 additions and 2 deletions

View file

@ -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>