wyświetlanie RJ dla scenerii offline

This commit is contained in:
2024-02-10 01:30:43 +01:00
parent eaefe955a7
commit 41b335555a
21 changed files with 161 additions and 101 deletions
+1 -14
View File
@@ -181,7 +181,7 @@ export default defineComponent({
isSBL: /sbl/gi.test(stop.stopName),
position: stop.beginsHere ? 'begin' : stop.terminatesHere ? 'end' : 'en-route',
sceneryHash: '',
sceneryName: this.timetableSceneryNames[currentSceneryIndex],
sceneryName: this.train.timetableData!.sceneryNames[currentSceneryIndex],
status: stop.confirmed ? 'confirmed' : stop.stopped ? 'stopped' : 'unconfirmed'
};
}) ?? []
@@ -216,19 +216,6 @@ export default defineComponent({
}
return activeMinorStopList;
},
timetableSceneryNames() {
if (!this.train.timetableData?.sceneries) return [];
return this.train.timetableData?.sceneries
.map(
(sceneryHash) =>
this.store.onlineSceneryList.find((st) => st.hash === sceneryHash)?.name ??
this.apiStore.sceneryData.find((sd) => sd.hash === sceneryHash)?.name ??
sceneryHash
)
.reverse();
}
},