From f566d2e1082b6a76af56ddd53e381d2a700e56c3 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 8 Oct 2021 19:53:31 +0200 Subject: [PATCH] =?UTF-8?q?Naprawiono=20liczb=C4=99=20rozk=C5=82ad=C3=B3w?= =?UTF-8?q?=20dla=20scenerii?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SceneryView/SceneryInfo.vue | 2 +- src/components/SceneryView/SceneryTimetable.vue | 14 +++++++++----- src/scripts/interfaces/Station.ts | 11 ++++------- src/store/index.ts | 6 ++++-- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/components/SceneryView/SceneryInfo.vue b/src/components/SceneryView/SceneryInfo.vue index d876198..2a2bbb8 100644 --- a/src/components/SceneryView/SceneryInfo.vue +++ b/src/components/SceneryView/SceneryInfo.vue @@ -41,7 +41,7 @@ icon-timetable - + {{ stationInfo.scheduledTrains.length }} diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue index 96f7cb9..c1a74aa 100644 --- a/src/components/SceneryView/SceneryTimetable.vue +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -18,7 +18,11 @@
- {{ - $t("app.loading") - }} + + {{ $t("app.loading") }} + ({ noCatenary: station[13] as number } }, - checkpoints: station[14] ? (station[14] as string[]).map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : null, + checkpoints: station[14] ? (station[14] as string[]).map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [], stops: station[15] as string[], default: station[16] as boolean, @@ -385,9 +385,11 @@ export const store = createStore({ if (stopName.includes(stationName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true; if (stationName.includes(stopName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true; if (stopName.includes("podg.") && stopName.split(", podg.")[0] && stationName.includes(stopName.split(", podg.")[0])) return true; - + // if (stationName) // if (station.stops && station.stops.includes(stop.stopNameRAW)) return true; + if (station.checkpoints.length > 0 && station.checkpoints.some(cp => cp.checkpointName.includes(stop.stopNameRAW))) return true; + return false; });