Add note when train is planned cancelled
This commit is contained in:
parent
f5760acd47
commit
b9f5f3dc1d
@ -38,7 +38,7 @@
|
|||||||
<span class="header"
|
<span class="header"
|
||||||
><StylesToc toc={service?.operator || ''} />
|
><StylesToc toc={service?.operator || ''} />
|
||||||
{service?.stops[0]['publicDeparture'] || service?.stops[0]['wttDeparture']}
|
{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>
|
<span id="container-arrow" class:isExpanded>V</span>
|
||||||
</div>
|
</div>
|
||||||
@ -47,6 +47,10 @@
|
|||||||
{#await getTrainByUID(service.trainUid)}
|
{#await getTrainByUID(service.trainUid)}
|
||||||
<LoadingText />
|
<LoadingText />
|
||||||
{:then serviceDetail}
|
{: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>
|
<div class="detailOperator"><StylesToc toc={service?.operator || ''} full={true} /></div>
|
||||||
{#if serviceDetail.pis}
|
{#if serviceDetail.pis}
|
||||||
<p class="pis">PIS: <PisHandler pisObject={serviceDetail.pis} /></p>
|
<p class="pis">PIS: <PisHandler pisObject={serviceDetail.pis} /></p>
|
||||||
@ -90,6 +94,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
</table>
|
</table>
|
||||||
|
{/if}
|
||||||
{:catch}
|
{:catch}
|
||||||
<p>Unable to fetch train data</p>
|
<p>Unable to fetch train data</p>
|
||||||
{/await}
|
{/await}
|
||||||
|
Loading…
Reference in New Issue
Block a user