- |
+ |
{loc.t}
|
@@ -121,17 +121,21 @@
|
{#if loc.r === 'PASS'}
Pass |
- {formatUkTime(loc.wtp)} |
- {formatUkTime(loc.atp || loc.etp || '--')} |
+ {formatUkTime(loc.wtp)} |
+ {formatUkTime(loc.atp || loc.etp || '--')} |
{:else}
- {formatUkTime(loc.pta || loc.wta)} |
- {formatUkTime(loc.ata || loc.eta || '--')} |
- {formatUkTime(loc.ptd || loc.wtd)} |
- {formatUkTime(loc.atd || loc.etd || '--')} |
+ {formatUkTime(loc.pta || loc.wta)} |
+ {formatUkTime(loc.ata || loc.eta || '--')} |
+ {formatUkTime(loc.ptd || loc.wtd)} |
+ {formatUkTime(loc.atd || loc.etd || '--')} |
{/if}
{#if loc}
{@const delay = calculateDelay(loc)}
- {delay.val} |
+ {@const arrType = estClass(loc.ata, loc.eta)}
+ {@const depType = estClass(loc.atd, loc.etd)}
+ {@const passType = estClass(loc.atp, loc.etp)}
+ {@const classType = depType || arrType || passType}
+ {delay.val} |
{/if}
{#if loc.act && getRelevantActivities(loc.act).length > 0}
@@ -150,3 +154,115 @@
+
+
\ No newline at end of file
diff --git a/src/lib/components/ui/station-board/ServiceDetailModal.svelte b/src/lib/components/ui/station-board/ServiceDetailModal.svelte
index abb0732..477bbe6 100644
--- a/src/lib/components/ui/station-board/ServiceDetailModal.svelte
+++ b/src/lib/components/ui/station-board/ServiceDetailModal.svelte
@@ -67,9 +67,20 @@
}}
>
-
+
{#if loading}
@@ -87,14 +98,14 @@