Replace loading text with component

This commit is contained in:
Fred Boniface 2023-06-17 21:48:00 +01:00
parent fe9a00d52d
commit 5fa55aad8b
1 changed files with 2 additions and 1 deletions

View File

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