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; + }, + }, });