Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Button Lock on Write Request to the API #76

Open
frinzekt opened this issue Aug 26, 2022 · 0 comments
Open

[FEATURE] Button Lock on Write Request to the API #76

frinzekt opened this issue Aug 26, 2022 · 0 comments
Labels
major Major Impact Issues
Milestone

Comments

@frinzekt
Copy link
Member

frinzekt commented Aug 26, 2022

Is your feature request related to a problem? Please describe

As a user, when creating, updating or deleting, I want the system to prevent my from accidentally clicking the action twice.

Describe the solution you'd like

The button should be disabled when waiting for the request to finish

Additional context

When the user spams the submit button, it will create multiple requests.

We need to stop that from happening by disabling the button. We can do that in 2 way depending on certain circumstances

  1. Formik submission isLoading attribute
  2. Manually doing it by useState... Useful for case like the AreYouSureModalButton

In terms of UI stuff, you can either use:

  1. disabled attribute
  2. Loading button https://mui.com/material-ui/react-button/#loading-button
@frinzekt frinzekt added the major Major Impact Issues label Sep 1, 2022
@frinzekt frinzekt added this to the Iteration #1 milestone Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Major Impact Issues
Projects
None yet
Development

No branches or pull requests

1 participant