bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

BUG: Host UI: Application submitted multiple times #23658

Open kris-daxiom opened 3 weeks ago

kris-daxiom commented 3 weeks ago

Description: When the submit button is clicked multiple times, duplicate applications were created.

Steps to Reproduce Click the submit button a couple of times continuously.

Current behavior Duplicate submissions are made

image.png

Expected Behavior Application is submitted once.

UX/UI Link: Button Loading State

jdyck-fw commented 2 weeks ago

Andy please talk to Scott

mbertucci commented 1 week ago

@kris-daxiom @forgeuxGH5 Do we need design for this or can we just grey the button out. MVP version.

andyyanggov commented 1 week ago

I was thinking we could do something like this:

Screenshot 2024-10-16 at 10.44.32 AM.png

But I suppose we could also just disable the button as is (without the loading animation) to save time.

forgeuxGH5 commented 1 week ago

NUXT has a loading state for buttons that disables the button and displays a spinner - looks like we can use an icon of our choice so we could match our existing UI's https://ui.nuxt.com/components/button