diff --git a/package-lock.json b/package-lock.json index ad74a6c..8010dac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "stacjownik", - "version": "1.19.0", + "version": "1.19.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "stacjownik", - "version": "1.19.0", + "version": "1.19.1", "dependencies": { "core-js": "^3.32.2", "dotenv": "^16.3.1", diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue index 1c05dd1..aa340a8 100644 --- a/src/components/SceneryView/SceneryTimetable.vue +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -255,7 +255,8 @@ export default defineComponent({ ?.filter( (train) => train.checkpointName.toLocaleLowerCase() == - (this.chosenCheckpoint || this.station.name).toLocaleLowerCase() + (this.chosenCheckpoint || this.station.name).toLocaleLowerCase() && + train.region == this.store.region.id ) .sort((a, b) => { if (a.stopStatusID > b.stopStatusID) return 1; diff --git a/src/store/typings.ts b/src/store/typings.ts index ac9475b..397ac8e 100644 --- a/src/store/typings.ts +++ b/src/store/typings.ts @@ -164,6 +164,8 @@ export interface ScheduledTrain { stopLabel: string; stopStatus: StopStatus; stopStatusID: number; + + region: string; } export enum StopStatus { diff --git a/src/store/utils.ts b/src/store/utils.ts index ae24d51..bf23475 100644 --- a/src/store/utils.ts +++ b/src/store/utils.ts @@ -175,6 +175,8 @@ export function getCheckpointTrain( stopStatus: trainStopStatus.stopStatus, stopStatusID: trainStopStatus.stopStatusID, + region: train.region, + arrivingLine, departureLine,