Revert "feat: remove button"

This reverts commit 6ac52e0b5f.
This commit is contained in:
Javier Segarra 2024-11-14 10:56:00 +01:00
parent 683edfbf56
commit 6919eeefc5
3 changed files with 26 additions and 6 deletions

View File

@ -303,3 +303,11 @@ const toModule = computed(() =>
}
}
</style>
<style lang="scss">
.q-card__actions {
.q-btn--rectangle {
padding: 0 5px;
}
justify-content: center;
}
</style>

View File

@ -155,6 +155,23 @@ const debtWarning = computed(() => {
</template>
<template #actions="{ entity }">
<QCardActions class="flex justify-center" style="padding-inline: 0">
<QBtn
:to="{
name: 'TicketList',
query: {
from: undefined,
to: undefined,
table: JSON.stringify({
clientFk: entity.id,
}),
},
}"
size="md"
icon="vn:ticket"
color="primary"
>
<QTooltip>{{ t('Customer ticket list') }}</QTooltip>
</QBtn>
<QBtn
:to="{
name: 'TicketList',

View File

@ -311,12 +311,7 @@ const creditWarning = computed(() => {
/>
</QCard>
<QCard class="vn-one">
<VnTitle
:text="t('Latest tickets')"
:url="`#/ticket?table=${JSON.stringify({
clientFk: entity.id,
})}`"
/>
<VnTitle :text="t('Latest tickets')" />
<CustomerSummaryTable />
</QCard>
</template>