diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue
index d4f6c2c..9316c4c 100644
--- a/src/components/TrainsView/TrainTable.vue
+++ b/src/components/TrainsView/TrainTable.vue
@@ -15,7 +15,7 @@
-
-
-
-
-
+
+
@@ -153,7 +162,7 @@
import { computed, ComputedRef, defineComponent, Ref, ref } from '@vue/runtime-core';
import { useStore } from '@/store';
-import defaultVehicleIconsJSON from "@/data/defaultVehicleIcons.json";
+import defaultVehicleIconsJSON from '@/data/defaultVehicleIcons.json';
import Train from '@/scripts/interfaces/Train';
import TrainStop from '@/scripts/interfaces/TrainStop';
@@ -251,7 +260,7 @@ export default defineComponent({
() =>
props.computedTrains.findIndex(({ timetableData }) => timetableData && timetableData.routeDistance > 200) !=
-1
- )
+ ),
};
},
@@ -342,8 +351,14 @@ export default defineComponent({
return '';
},
- hasTimetableComments(timetableData: Train['timetableData']) {
- return timetableData?.followingStops.some((stop) => stop.comments) || false;
+ getSceneriesWithComments(timetableData: Train['timetableData']) {
+ return (
+ timetableData?.followingStops.reduce((acc, stop) => {
+ if (stop.comments) acc.push(stop.stopNameRAW);
+
+ return acc;
+ }, [] as string[]) || []
+ );
},
},