From 6ea0af1c26dd1401c6f4d382625bf5af2aed65e5 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 14 Sep 2023 14:08:14 +0100 Subject: [PATCH] Run prettier --- src/lib/ldb/staff/table/table-generator.svelte | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/lib/ldb/staff/table/table-generator.svelte b/src/lib/ldb/staff/table/table-generator.svelte index 0e13b06..3371ce1 100644 --- a/src/lib/ldb/staff/table/table-generator.svelte +++ b/src/lib/ldb/staff/table/table-generator.svelte @@ -8,8 +8,8 @@ export let click: Function; interface locationObject { - location: string, - via?: string, + location: string; + via?: string; } function detail(event: any, rid: string, uid: string, tid: string) { @@ -23,7 +23,7 @@ tiplocs.push(location.tiploc); } let locationObj: locationObject = { - location: tiplocs.join(' & '), + location: tiplocs.join(' & ') }; if (locations[0]['via']) { locationObj.via = locations[0]['via']; @@ -134,9 +134,13 @@ {service.trainid} - {#await formatLocations(service.origin) then origin}{origin.location}{#if origin.via}
{origin.via}{/if}{/await} + {#await formatLocations(service.origin) then origin}{origin.location}{#if origin.via}
{origin.via}{/if}{/await} - {#await formatLocations(service.destination) then dest}{dest.location}{#if dest.via}
{dest.via}{/if}{/await} + {#await formatLocations(service.destination) then dest}{dest.location}{#if dest.via}
{dest.via}{/if}{/await} {service.platform || '-'} @@ -295,7 +299,9 @@ } /* Conditional Classes */ - .loc.canc, .id.canc, .canc { + .loc.canc, + .id.canc, + .canc { color: grey; text-decoration: line-through; opacity: 0.8;