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