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

Save Button Not Disabled During API Call, Allowing Multiple Requests #1339

Open
aayush6194 opened this issue Dec 5, 2024 · 2 comments
Open
Assignees

Comments

@aayush6194
Copy link

aayush6194 commented Dec 5, 2024

Description

In the Add Or Modify Patient on PatientManagement page, the Save button remains enabled while the POST API call is being made to the backend. This allows users to accidentally make multiple requests by clicking the Save button repeatedly in quick succession, resulting in duplicate or unintended operations on the backend.

Page Affected

https://localhost/PatientManagement

Steps to Reproduce

  • Navigate to the Add/Edit Patient page.
  • Fill out the required fields in the form.
  • Click the Save button multiple times in quick succession.
  • Observe that multiple POST requests are sent to the backend, potentially causing duplicate entries or operations.

Proposed Fix

  • Disable the Save Button till the API request is pending.
  • Or add a Loading Indicator while the Save operation is in progress.

Screenshots

image
image

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 6, 2024

Thanks @aayush6194 for catching this

@Nirvanjha2004
Copy link

hey @mozzy11 can u assign me this issue ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants