Skip to content

Commit

Permalink
feat: display loading process
Browse files Browse the repository at this point in the history
  • Loading branch information
agrrh committed Dec 10, 2023
1 parent 59dae5a commit 747c20a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/lib/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@
</div>

<div class="body">
{#each observations as tick}
<Tick id={tick[0]} uptime={tick[1]} capacity={tickCapacitySeconds} />
{/each}
{#if dummy}
<progress class="progress is-small is-gray mt-2 mb-1" max="100">0%</progress>
{:else}
{#each observations as tick}
<Tick id={tick[0]} uptime={tick[1]} capacity={tickCapacitySeconds} />
{/each}
{/if}
</div>

<div class="info columns is-mobile has-text-grey is-size-7">
Expand Down

0 comments on commit 747c20a

Please sign in to comment.