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

Fix client delete function #725

Merged
merged 2 commits into from
Sep 30, 2023
Merged

Conversation

wrongecho
Copy link
Collaborator

Bugfix + Enhancement

When testing the recent changes, I noticed the restored client delete modal wasn't properly directing people to the post.php?delete_client page - it would just hang after you click Yes.

Whilst working on fixing this using the new confirmation modals, I figured that deleting an entire clients data shouldn't be as easy as clicking "Yes", so restored the old confirmation dialog where you're required to enter the client name (complete with CSRF).
Hope you agree that this is the best way forward for this specific extremely destructive function! :)

image

image

@wrongecho
Copy link
Collaborator Author

Test these changes at: https://fixclientdelete725.pr-review.itflow.org
(automatic message)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
21.3% 21.3% Duplication

@johnnyq
Copy link
Collaborator

johnnyq commented Sep 30, 2023

This looks fantastic!! =] I like that you have to enter the client name in to continue

@johnnyq johnnyq merged commit 24707e8 into itflow-org:master Sep 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants