Add classes to train detail messages
This commit is contained in:
parent
5a6fe0f3f5
commit
8a7c78219f
@ -4,7 +4,7 @@
|
|||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import Loading from '$lib/navigation/loading.svelte';
|
import Loading from '$lib/navigation/loading.svelte';
|
||||||
import OverlayIsland from '$lib/islands/overlay-island.svelte';
|
import OverlayIsland from '$lib/islands/overlay-island.svelte';
|
||||||
import AlertBar from './alert-bar.svelte';
|
import AlertBar from '$lib/ldb/nrcc/alert-bar.svelte';
|
||||||
|
|
||||||
let requestedStation;
|
let requestedStation;
|
||||||
$: requestedStation = station;
|
$: requestedStation = station;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
export let station = '';
|
export let station = '';
|
||||||
export let title = 'Loading...';
|
export let title = 'Loading...';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import AlertBar from '../alert-bar.svelte';
|
import AlertBar from '$lib/ldb/nrcc/alert-bar.svelte';
|
||||||
import ServiceRow from './service-row.svelte';
|
import ServiceRow from './service-row.svelte';
|
||||||
import StaffTrainDetail from '$lib/ldb/staff/train-detail.svelte';
|
import StaffTrainDetail from '$lib/ldb/staff/train-detail.svelte';
|
||||||
import Reason from '$lib/raw-fetchers/reason.svelte';
|
import Reason from '$lib/raw-fetchers/reason.svelte';
|
||||||
|
@ -111,12 +111,12 @@
|
|||||||
</p>
|
</p>
|
||||||
<table id="detailTable">
|
<table id="detailTable">
|
||||||
{#if train.GetServiceDetailsResult.delayReason}
|
{#if train.GetServiceDetailsResult.delayReason}
|
||||||
<tr><td colspan="7">
|
<tr><td colspan="7" class="late">
|
||||||
<Reason type="delay" code={train.GetServiceDetailsResult.delayReason} />
|
<Reason type="delay" code={train.GetServiceDetailsResult.delayReason} />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
{/if}
|
{/if}
|
||||||
{#if train.GetServiceDetailsResult.cancelReason}
|
{#if train.GetServiceDetailsResult.cancelReason}
|
||||||
<tr><td colspan="7">
|
<tr><td colspan="7" class="canc">
|
||||||
<Reason type="cancel" code={train.GetServiceDetailsResult.cancelReason} />
|
<Reason type="cancel" code={train.GetServiceDetailsResult.cancelReason} />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user