Skip to content

Commit

Permalink
disable button while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Mar 29, 2024
1 parent d94710a commit c200231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/documents/ResultsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
{/each}
<div class="end" bind:this={end}>
{#if next}
<Button on:click={(e) => load(new URL(next))}>Load more</Button>
<Button disabled={loading} on:click={(e) => load(new URL(next))}
>Load more</Button
>
{/if}
</div>
</div>
Expand Down

0 comments on commit c200231

Please sign in to comment.