From bd47e7c8bf577e8485cf6a391e8d9a21a89d9c2d Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 25 Dec 2020 22:59:11 +0100 Subject: [PATCH] Move spinner back to RangeBox --- ts/graphs/GraphsPage.svelte | 55 +++++++++++++++---------------------- ts/graphs/RangeBox.svelte | 20 +++++++++++--- ts/graphs/graphs.scss | 10 ++++--- 3 files changed, 44 insertions(+), 41 deletions(-) diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index 61e28053b..f2358181b 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -4,7 +4,6 @@ {#if withRangeBox} - + {/if} -
- {#await dataPromise} -
- {:then sourceData} - {#each graphs as Graph} - - {/each} - {:catch error} - - {/await} -
+{#if sourceData} +
+ {#each graphs as Graph} + + {/each} +
+{/if} diff --git a/ts/graphs/RangeBox.svelte b/ts/graphs/RangeBox.svelte index ca18750d3..2d10ca2aa 100644 --- a/ts/graphs/RangeBox.svelte +++ b/ts/graphs/RangeBox.svelte @@ -1,6 +1,7 @@