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

Disable delete button during request to delete entity #787

Open
matthew-white opened this issue Nov 10, 2024 · 0 comments
Open

Disable delete button during request to delete entity #787

matthew-white opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or behavior entities Multiple Encounter workflows frontend Requires a change to the UI needs testing Needs manual testing

Comments

@matthew-white
Copy link
Member

Let's say I check "Delete immediately without confirmation until I leave the page" while deleting an entity from the entities table. If I then go on to delete another entity, nothing happens to the delete button when I click it. The button is not disabled, and no spinner is shown. I'm able to click the button again, sending a second request to delete the entity.

When we added submission deletion from the submissions table (getodk/central-frontend#1043), we set it up so that the delete button changes after it is clicked. The button is disabled, and a spinner is shown. This issue is to do something similar for entity deletion.

@matthew-white matthew-white added enhancement New feature or behavior frontend Requires a change to the UI needs testing Needs manual testing entities Multiple Encounter workflows labels Nov 10, 2024
@github-project-automation github-project-automation bot moved this to 🕒 backlog in ODK Central Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or behavior entities Multiple Encounter workflows frontend Requires a change to the UI needs testing Needs manual testing
Projects
Status: 🕒 backlog
Development

No branches or pull requests

2 participants