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>