chore: added max timetable speed; route pairing fix

This commit is contained in:
2025-02-03 23:51:47 +01:00
parent 8a5687cc01
commit 5fb1a87b41
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -140,9 +140,14 @@
tabindex="0" tabindex="0"
:data-tooltip="$t('trains.vmax-tooltip')" :data-tooltip="$t('trains.vmax-tooltip')"
> >
vMax:
{{ stockSpeedLimit }} km/h {{ stockSpeedLimit }} km/h
</em> </em>
</span> </span>
<span v-if="train.timetableData?.trainMaxSpeed"
>&bull; vRJ: {{ train.timetableData.trainMaxSpeed }} km/h</span
>
</div> </div>
</div> </div>
+1 -1
View File
@@ -270,7 +270,7 @@ export default defineComponent({
arrivalLine: stop.arrivalLine, arrivalLine: stop.arrivalLine,
departureLine: stop.departureLine, departureLine: stop.departureLine,
arrivalLineInfo, arrivalLineInfo: arrivalLineInfo,
departureLineInfo, departureLineInfo,
isExternal, isExternal,
+1
View File
@@ -97,6 +97,7 @@ export const useMainStore = defineStore('mainStore', {
warningNotes: timetable.warningNotes, warningNotes: timetable.warningNotes,
hasDangerousCargo: timetable.hasDangerousCargo, hasDangerousCargo: timetable.hasDangerousCargo,
hasExtraDeliveries: timetable.hasExtraDeliveries, hasExtraDeliveries: timetable.hasExtraDeliveries,
trainMaxSpeed: timetable.trainMaxSpeed,
timetablePath: timetable.path.split(';').map((pathElementString) => { timetablePath: timetable.path.split(';').map((pathElementString) => {
const [arrival, station, departure] = pathElementString.split(','); const [arrival, station, departure] = pathElementString.split(',');
+1 -2
View File
@@ -196,9 +196,7 @@ export namespace API {
timetableId: number; timetableId: number;
category: string; category: string;
route: string; route: string;
stopList: TimetableStop[]; stopList: TimetableStop[];
TWR: boolean; TWR: boolean;
SKR: boolean; SKR: boolean;
hasDangerousCargo: boolean; hasDangerousCargo: boolean;
@@ -206,6 +204,7 @@ export namespace API {
warningNotes: string | null; warningNotes: string | null;
sceneries: string[]; sceneries: string[];
path: string; path: string;
trainMaxSpeed: number;
} }
} }