From 2a615a822ec4c7c826fa1ca0fbe2688a922a18dc Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 23 Apr 2024 14:58:27 +0100 Subject: [PATCH] Update to handle new serviceDetails object --- src/lib/train/train-detail.svelte | 2 +- src/lib/train/trainIcons.svelte | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/lib/train/train-detail.svelte b/src/lib/train/train-detail.svelte index b765ce2..0194d08 100644 --- a/src/lib/train/train-detail.svelte +++ b/src/lib/train/train-detail.svelte @@ -61,7 +61,7 @@ {:else}
- + {#if serviceDetail.pis} {/if} diff --git a/src/lib/train/trainIcons.svelte b/src/lib/train/trainIcons.svelte index 53846ad..adbc585 100644 --- a/src/lib/train/trainIcons.svelte +++ b/src/lib/train/trainIcons.svelte @@ -1,35 +1,33 @@ -{#if firstClass} +{#if serviceDetails.firstClass} {/if} -{#if hasCatering} +{#if serviceDetails.catering} {/if} -{#if sleeper} +{#if serviceDetails.sleeper} {/if} -{#if vstp} +{#if serviceDetails.vstp}