diff --git a/webif/src/routes/+page.svelte b/webif/src/routes/+page.svelte index 08df097..abad865 100644 --- a/webif/src/routes/+page.svelte +++ b/webif/src/routes/+page.svelte @@ -8,6 +8,7 @@ import Characteristics from './Characteristics.svelte' import MainsPower from './MainsPower.svelte' import Circuits from './Circuits.svelte' + import Loader from './Loader.svelte' let configuration let webSocketUrl @@ -62,8 +63,10 @@ }) -{#if webSocketUrl === undefined} -

Please add ?ws=ws://x.x.x.x:yyyy to your URL to connect to a server

+{#if lastUpdateTimestamp === undefined} +
+ +
{:else}
diff --git a/webif/src/routes/Loader.svelte b/webif/src/routes/Loader.svelte new file mode 100644 index 0000000..c813fea --- /dev/null +++ b/webif/src/routes/Loader.svelte @@ -0,0 +1,50 @@ + + +