From 161a632f496c74abb7954bd0882dd3493c0f535f Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 18 Mar 2022 15:28:54 +0100 Subject: [PATCH] =?UTF-8?q?Poprawki=20w=20karcie=20poci=C4=85gu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SceneryInfo/SceneryInfoDispatcher.vue | 2 +- .../TrainsView/TrainInfoExtended.vue | 60 ++++++++++++++----- src/components/TrainsView/TrainSchedule.vue | 51 +++++++++++----- src/locales/en.json | 2 +- src/locales/pl.json | 2 +- src/store/index.ts | 26 ++++---- 6 files changed, 96 insertions(+), 47 deletions(-) diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue index c9257cf..a8aeaaf 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue @@ -3,7 +3,7 @@
{{ station.onlineInfo.dispatcherExp > 1 ? station.onlineInfo.dispatcherExp : 'L' }} diff --git a/src/components/TrainsView/TrainInfoExtended.vue b/src/components/TrainsView/TrainInfoExtended.vue index 8fbd279..8417c23 100644 --- a/src/components/TrainsView/TrainInfoExtended.vue +++ b/src/components/TrainsView/TrainInfoExtended.vue @@ -24,37 +24,39 @@ -
+ {{ train.timetableData.category }} {{ ' ' + train.trainNo }} | {{ train.driverName }} -
+
+ + + + {{ isInfoShown ? 'Ukryj' : 'Pokaż' }} informacje +
{{ train.timetableData.route.replace('|', ' - ') }} - -
-
+
{{ $t('trains.via-title') }}
+ +
+ {{ $t('trains.comment') }} {{ getSceneriesWithComments(train.timetableData).join(',') }} +
-
+
@@ -130,14 +132,26 @@ export default defineComponent({ data: () => ({ icons: { warning: require('@/assets/icon-warning.svg'), + ascArrow: require('@/assets/icon-arrow-asc.svg'), }, + + isInfoShown: true, }), + + methods: { + toggleInfo() { + this.isInfoShown = !this.isInfoShown; + }, + }, });