mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
fix: progress indicator
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class="stop-label"
|
||||
:data-minor="stop.isSBL || (stop.nameRaw.endsWith(', po') && !stop.duration)"
|
||||
>
|
||||
<router-link v-if="/(, podg|<strong>)/.test(stop.nameHtml)" :to="sceneryHref">
|
||||
<router-link v-if="/(, podg$|<strong>)/.test(stop.nameHtml)" :to="sceneryHref">
|
||||
<span class="name" v-html="stop.nameHtml"></span>
|
||||
</router-link>
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<div class="general-stops" v-if="train.timetableData">
|
||||
<span v-if="train.timetableData.followingStops.length > 2">
|
||||
{{ $t('trains.via-title') }}
|
||||
<span v-html="displayStopList(train.timetableData.followingStops)"></span>
|
||||
<span v-html="getTrainStopsHtml(train.timetableData.followingStops)"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ export default defineComponent({
|
||||
i < this.train.timetableData!.followingStops.length;
|
||||
i++
|
||||
) {
|
||||
if (/(, po|sbl|, pe)/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
||||
if (/(, po$|sbl|, pe$)/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
||||
activeMinorStopList.push(i);
|
||||
else break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user