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> <template>
<div class="general-status"> <div class="general-status">
<router-link <router-link
v-if="computedScheduledTrain.stationNameHref"
:to="`/scenery?station=${computedScheduledTrain.stationNameHref}`" :to="`/scenery?station=${computedScheduledTrain.stationNameHref}`"
:class="computedScheduledTrain.status" :class="computedScheduledTrain.status"
v-html="computedScheduledTrain.stopStatusIndicator" v-html="computedScheduledTrain.stopStatusIndicator"
> >
</router-link> </router-link>
<span
v-else
:class="computedScheduledTrain.status"
v-html="computedScheduledTrain.stopStatusIndicator"
></span>
</div> </div>
</template> </template>
+1 -1
View File
@@ -593,7 +593,7 @@
"terminates": "TERMINATES\nHERE", "terminates": "TERMINATES\nHERE",
"from": "Arrives from", "from": "Arrives from",
"to": "Departs to", "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-arriving": "Arrives from: <b><u>{prevStationName} ({prevDepartureLine})</u></b>",
"desc-online": "On scenery / direction: <b><u>{nextStationName} ({nextArrivalLine})</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>", "desc-stopped": "On scenery - stopped / direction: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",
+1 -1
View File
@@ -579,7 +579,7 @@
"terminates": "KOŃCZY BIEG", "terminates": "KOŃCZY BIEG",
"from": "Przyjedzie z", "from": "Przyjedzie z",
"to": "Odjeżdża do", "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-arriving": "Przyjedzie z: <b><u>{prevStationName} ({prevDepartureLine})</u></b>",
"desc-online": "Na scenerii / kierunek: <b><u>{nextStationName} ({nextArrivalLine})</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>", "desc-stopped": "Na scenerii - postój / kierunek: <b><u>{nextStationName} ({nextArrivalLine})</u></b>",