refactor: hide btn preview on tab receipt
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
Thanaphon Frappet 2025-03-05 17:34:13 +07:00
parent c8a6434e4c
commit 18b686e046
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,7 @@ const props = withDefaults(
hideEdit?: boolean;
page?: number;
pageSize?: number;
hideBtnPreview?: boolean;
}>(),
{
row: () => [],
@ -127,6 +128,7 @@ defineEmits<{
<q-td class="text-right">
<q-btn
v-if="!hideBtnPreview"
:id="`btn-preview-${props.row.workName}`"
icon="mdi-play-box-outline"
size="sm"

View file

@ -641,6 +641,7 @@ async function storeDataLocal(id: string) {
:visible-columns="pageState.fieldSelected"
:grid="pageState.gridView"
:hide-edit="pageState.currentTab !== 'Issued'"
:hide-btn-preview="pageState.currentTab === 'PaymentSuccess'"
@preview="(id: any) => storeDataLocal(id)"
@view="
(item) => {
@ -667,6 +668,7 @@ async function storeDataLocal(id: string) {
class="col"
hide-kebab-delete
:hide-kebab-edit="!(pageState.currentTab === 'Issued')"
:hide-preview="pageState.currentTab === 'PaymentSuccess'"
:urgent="item.row.urgent"
:code="item.row.code"
:title="item.row.workName"