mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user