Replace loading text with component

This commit is contained in:
Fred Boniface 2023-06-17 21:48:00 +01:00
parent fe9a00d52d
commit 5fa55aad8b

View File

@ -1,6 +1,7 @@
<script> <script>
export let station = ""; export let station = "";
import { onMount } from 'svelte' import { onMount } from 'svelte'
import Loading from '$lib/navigation/loading.svelte';
let requestedStation; let requestedStation;
$: requestedStation = station; $: requestedStation = station;
@ -86,7 +87,7 @@
</script> </script>
{#if isLoading} {#if isLoading}
<p id="timestamp">Loading...</p> <Loading />
{:else} {:else}
<p id="timestamp">Updated: {dataAge.toLocaleTimeString()}</p> <p id="timestamp">Updated: {dataAge.toLocaleTimeString()}</p>