mirror of
https://github.com/NotAShelf/nix-evaluator-stats.git
synced 2026-05-21 22:36:39 +00:00
index: add loading spinner
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I383f790b11f2b350ebe4b51a81af1d286a6a6964
This commit is contained in:
parent
288eb9ca54
commit
1850ac135f
2 changed files with 25 additions and 2 deletions
|
|
@ -192,7 +192,13 @@ function App() {
|
|||
</header>
|
||||
|
||||
<main class="main">
|
||||
<Suspense fallback={<div class="loading">Loading analysis...</div>}>
|
||||
<Show when={isLoading()}>
|
||||
<div class="loading">
|
||||
<div class="spinner"></div>
|
||||
<span>Loading saved data...</span>
|
||||
</div>
|
||||
</Show>
|
||||
<Show when={!isLoading()}>
|
||||
<Show when={view() === 'analysis'}>
|
||||
<Show when={!currentStats()}>
|
||||
<FileUpload
|
||||
|
|
@ -238,7 +244,7 @@ function App() {
|
|||
onDelete={deleteSnapshot}
|
||||
/>
|
||||
</Show>
|
||||
</Suspense>
|
||||
</Show>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue