Replace loading text with component
This commit is contained in:
parent
fe9a00d52d
commit
5fa55aad8b
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user