Fix CustomerSummaryTableActions import
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-02-20 16:02:32 -03:00
parent 01d68734b6
commit 7c8b0a345e
1 changed files with 4 additions and 13 deletions

View File

@ -1,12 +1,10 @@
<script setup>
import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar';
import TicketSummaryDialog from 'src/pages/Ticket/Card/TicketSummaryDialog.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import TicketSummary from 'src/pages/Ticket/Card/TicketSummary.vue';
const { t } = useI18n();
const quasar = useQuasar();
const $props = defineProps({
id: {
@ -15,14 +13,7 @@ const $props = defineProps({
},
});
const viewSummary = () => {
quasar.dialog({
component: TicketSummaryDialog,
componentProps: {
id: $props.id,
},
});
};
const { viewSummary } = useSummaryDialog();
</script>
<template>
@ -33,7 +24,7 @@ const viewSummary = () => {
</QTooltip>
</QIcon>
<QIcon
@click.stop="viewSummary"
@click.stop="viewSummary(id, TicketSummary)"
class="q-ml-md"
color="primary"
name="preview"