fix(ScheduledTrainStatus): router link only for timetable statuses with station name hrefs

This commit is contained in:
2025-07-19 15:21:32 +02:00
parent cfeeb8fddd
commit 8b6944a8e5
3 changed files with 9 additions and 2 deletions
@@ -1,11 +1,18 @@
<template>
<div class="general-status">
<router-link
v-if="computedScheduledTrain.stationNameHref"
:to="`/scenery?station=${computedScheduledTrain.stationNameHref}`"
:class="computedScheduledTrain.status"
v-html="computedScheduledTrain.stopStatusIndicator"
>
</router-link>
<span
v-else
:class="computedScheduledTrain.status"
v-html="computedScheduledTrain.stopStatusIndicator"
></span>
</div>
</template>
+1 -1
View File
@@ -593,7 +593,7 @@
"terminates": "TERMINATES\nHERE",
"from": "Arrives from",
"to": "Departs to",
"desc-beginning": "The train begins here",
"desc-beginning": "Outside scenery / begins here",
"desc-arriving": "Arrives from: <b><u>{prevStationName} ({prevDepartureLine})</u></b>",
"desc-online": "On scenery / direction: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",
"desc-stopped": "On scenery - stopped / direction: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",
+1 -1
View File
@@ -579,7 +579,7 @@
"terminates": "KOŃCZY BIEG",
"from": "Przyjedzie z",
"to": "Odjeżdża do",
"desc-beginning": "Pociąg rozpoczyna bieg",
"desc-beginning": "Poza scenerią / rozpoczyna bieg",
"desc-arriving": "Przyjedzie z: <b><u>{prevStationName} ({prevDepartureLine})</u></b>",
"desc-online": "Na scenerii / kierunek: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",
"desc-stopped": "Na scenerii - postój / kierunek: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",