mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore: added a display of the timetable max speed in the active train info & tooltip
This commit is contained in:
@@ -9,6 +9,17 @@
|
||||
<div class="text--primary">
|
||||
<b>{{ trainInfo.stockList[0] }}</b> • {{ trainInfo.length }}m •
|
||||
{{ (trainInfo.mass / 1000).toFixed(2) }}t
|
||||
<span v-if="trainInfo.timetableData">
|
||||
• vRJ:
|
||||
{{
|
||||
trainInfo.timetableData?.trainMaxSpeed ||
|
||||
getStockSpeedLimit(trainInfo.stockList, trainInfo.mass)
|
||||
}}km/h
|
||||
</span>
|
||||
<span v-else class="text--grayed font--italic">
|
||||
• vMax:
|
||||
{{ getStockSpeedLimit(trainInfo.stockList, trainInfo.mass) }}km/h
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="text--grayed">
|
||||
@@ -46,9 +57,7 @@ export default defineComponent({
|
||||
return this.mainStore.trainList.find((t) => t.id === this.tooltipStore.content);
|
||||
},
|
||||
|
||||
lastSceneryStatus() {
|
||||
|
||||
}
|
||||
lastSceneryStatus() {}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user