Skip to content

Commit

Permalink
chore: disable the generate button when the collage is currently bein…
Browse files Browse the repository at this point in the history
…g generated to avoid multiple submits
  • Loading branch information
BradLewis committed Jan 3, 2024
1 parent cef3383 commit 11d97f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/lib/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,13 @@
<div class="loader" />
{/if}
</div>
<input name="submit" class="btn-grad" type="submit" value="Generate" />
<input
name="submit"
class="btn-grad"
type="submit"
value="Generate"
disabled={$isSubmitting}
/>
<input
name="embed"
class="btn-grad-embed"
Expand Down

0 comments on commit 11d97f5

Please sign in to comment.