0
0
Fork 0

Fix CustomerSummaryTableActions import

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