From 41e4b4559917e93e50b793cf37c2329da631939d Mon Sep 17 00:00:00 2001 From: dominik-korsa <29484605+dominik-korsa@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:54:48 +0200 Subject: [PATCH] Use for driver journal button in TrainInfo --- src/components/TrainsView/TrainInfo.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/TrainsView/TrainInfo.vue b/src/components/TrainsView/TrainInfo.vue index b387049..bf5fbe0 100644 --- a/src/components/TrainsView/TrainInfo.vue +++ b/src/components/TrainsView/TrainInfo.vue @@ -49,12 +49,12 @@
- +
@@ -200,17 +200,14 @@ export default defineComponent({ return Math.min(vehicleSpeed, acc); }, 300); - } - }, - - methods: { - navigateToJournal() { - this.$router.push({ + }, + journalRouteLocation() { + return { path: '/journal/timetables', query: { 'search-driver': this.train.driverName } - }); + } } } });