From 0c31755fdb3835a14bea2800c39dc040a441d164 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 1 Jul 2024 12:21:18 +0200 Subject: [PATCH] refs #7366 fix summary --- src/pages/Travel/TravelList.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pages/Travel/TravelList.vue b/src/pages/Travel/TravelList.vue index a1d008302..872e6c06d 100644 --- a/src/pages/Travel/TravelList.vue +++ b/src/pages/Travel/TravelList.vue @@ -4,15 +4,13 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import { useStateStore } from 'stores/useStateStore'; import VnTable from 'components/VnTable/VnTable.vue'; - +import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { computed } from 'vue'; - +const { viewSummary } = useSummaryDialog(); const router = useRouter(); const { t } = useI18n(); const stateStore = useStateStore(); -const warehouses = ref([]); - const cloneTravel = (travelData) => { const stringifiedTravelData = JSON.stringify(travelData); redirectToCreateView(stringifiedTravelData); @@ -26,10 +24,6 @@ const redirectCreateEntryView = (travelData) => { router.push({ name: 'EntryCreate', query: { travelFk: travelData.id } }); }; -const getWarehouseName = (id) => { - return warehouses.value.find((warehouse) => warehouse.id === id).name; -}; - onMounted(async () => { stateStore.rightDrawer = true; });