From 6ad2e9aafe520acb5b1d8c578a506b0a02d2c01d Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Fri, 23 Feb 2024 14:43:08 -0300 Subject: [PATCH] Update roadmap summary dialog implementation --- .../Route/Roadmap/RoadmapSummaryDialog.vue | 29 ------------------- src/pages/Route/RouteRoadmap.vue | 18 +++--------- 2 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 src/pages/Route/Roadmap/RoadmapSummaryDialog.vue diff --git a/src/pages/Route/Roadmap/RoadmapSummaryDialog.vue b/src/pages/Route/Roadmap/RoadmapSummaryDialog.vue deleted file mode 100644 index 35cb5771a..000000000 --- a/src/pages/Route/Roadmap/RoadmapSummaryDialog.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - diff --git a/src/pages/Route/RouteRoadmap.vue b/src/pages/Route/RouteRoadmap.vue index 73d63aa06..f176aebc5 100644 --- a/src/pages/Route/RouteRoadmap.vue +++ b/src/pages/Route/RouteRoadmap.vue @@ -13,11 +13,13 @@ import RoadmapFilter from 'pages/Route/Roadmap/RoadmapFilter.vue'; import VnConfirm from 'components/ui/VnConfirm.vue'; import axios from 'axios'; import VnInputDate from 'components/common/VnInputDate.vue'; -import RoadmapSummaryDialog from "pages/Route/Roadmap/RoadmapSummaryDialog.vue"; +import {useSummaryDialog} from "composables/useSummaryDialog"; +import RoadmapSummary from "pages/Route/Roadmap/RoadmapSummary.vue"; const stateStore = useStateStore(); const { t } = useI18n(); const quasar = useQuasar(); +const { viewSummary } = useSummaryDialog(); const to = Date.vnNew(); to.setDate(to.getDate() + 1); @@ -122,18 +124,6 @@ function confirmRemove() { }) .onOk(() => refreshKey.value++); } - -function previewRoadmap(id) { - if (!id) { - return; - } - quasar.dialog({ - component: RoadmapSummaryDialog, - componentProps: { - id, - }, - }); -}