mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
fix(ScheduledTrainStatus): router link only for timetable statuses with station name hrefs
This commit is contained in:
@@ -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
@@ -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
@@ -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>",
|
||||
|
||||
Reference in New Issue
Block a user