Add note when train is planned cancelled

This commit is contained in:
Fred Boniface 2024-02-05 20:10:11 +00:00
parent f5760acd47
commit b9f5f3dc1d
1 changed files with 46 additions and 41 deletions

View File

@ -38,7 +38,7 @@
<span class="header"
><StylesToc toc={service?.operator || ''} />
{service?.stops[0]['publicDeparture'] || service?.stops[0]['wttDeparture']}
{service?.stops[0]['tiploc']} to {service?.stops[service['stops'].length - 1]['tiploc']}{#if (service?.vstp)}VSTP{/if}</span
{service?.stops[0]['tiploc']} to {service?.stops[service['stops'].length - 1]['tiploc']}{#if service?.vstp}VSTP{/if}</span
>
<span id="container-arrow" class:isExpanded>V</span>
</div>
@ -47,6 +47,10 @@
{#await getTrainByUID(service.trainUid)}
<LoadingText />
{:then serviceDetail}
{#if serviceDetail.stpIndicator === 'C'}
This has been removed from the timetable for today<br />
It is likely another service is running in its place
{:else}
<div class="detailOperator"><StylesToc toc={service?.operator || ''} full={true} /></div>
{#if serviceDetail.pis}
<p class="pis">PIS: <PisHandler pisObject={serviceDetail.pis} /></p>
@ -90,6 +94,7 @@
{/each}
{/if}
</table>
{/if}
{:catch}
<p>Unable to fetch train data</p>
{/await}