You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Business Dashboard UI: need feedback when Delete button is clicked (was: Not able to delete a Draft IA) #27240
When you click the Delete button to delete a draft bootstrap filing (eg, IA) from the Business Dashboard UI, nothing appears to happen for a few seconds, so a user might click the Delete button a few more times. This would send additional "delete" calls to the API, which would fail like this:
The initial Delete event will still be performed correctly.
Steps to reproduce the behavior
create a draft Incorporation Application
from Business Dashboard, open dropdown menu and click Delete Incorporation Application
from modal, click Delete button
observe that nothing happens for a few seconds
observe that the current page is eventually closed and BRD opens
changed the title [-]Not able to delete a Draft IA as Staff.[/-][+]Business Dashboard UI: need feedback when Delete button is clicked (was: Not able to delete a Draft IA)[/+]on Apr 16, 2025
I think the issue is that there's no feedback that the Delete button was clicked, so the user might try to click it a few more times -- and each time generates a "delete" call to the API, where only the first one succeeds.
Therefore, a reasonable fix here is to update the Delete button to a loading state once it's clicked (and/or some other way to show that it has been clicked, and prevent it from being clicked again).
While in this code base, please check the actions buttons for other confirm-type dialogs and fix similarly.
Activity
severinbeauvais commentedon Apr 16, 2025
Looks to me like the draft IA has already been deleted. Please refresh the page and try again.
severinbeauvais commentedon Apr 16, 2025
I just created a draft BC IA, while logged in as staff in Test, and I was able to successfully delete it.
[-]Not able to delete a Draft IA as Staff.[/-][+]Business Dashboard UI: need feedback when Delete button is clicked (was: Not able to delete a Draft IA)[/+]severinbeauvais commentedon May 1, 2025
I think the issue is that there's no feedback that the Delete button was clicked, so the user might try to click it a few more times -- and each time generates a "delete" call to the API, where only the first one succeeds.
Therefore, a reasonable fix here is to update the Delete button to a loading state once it's clicked (and/or some other way to show that it has been clicked, and prevent it from being clicked again).
While in this code base, please check the actions buttons for other confirm-type dialogs and fix similarly.