-
-
Notifications
You must be signed in to change notification settings - Fork 292
Fix: No cancel button showing when creating new user via new review #3756
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: No cancel button showing when creating new user via new review #3756
Conversation
Code Climate has analyzed commit f7b701d and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@Paul-Bob please help reviewing PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @piyush828-design 👋
Thanks for submitting this PR!
I noticed that the cancel button in your example links to "admin/resources/users"
and triggers a GET request when clicked.
Let's make sure the button doesn't render as a link, and instead includes:
data: { action: 'click->modal#close' }
This will ensure the modal closes without making any network requests.
Thanks again!
Hi @Paul-Bob , |
Yes, that Here are a couple of places where similar logic is already in use, for reference:
No worries at all, appreciate you looking into it! You're right, it should be added in |
Updated, thanks @Paul-Bob :) |
Thanks @piyush828-design it's looking good! I haven’t had a chance to test it yet, but the logic appears to be correct. I’ll give it a proper run-through soon and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a small tweak to preserve the original lines and avoid over-refactoring the link logic.
Thank you for this contribution @piyush828-design!
Thank you @Paul-Bob ;) |
Description
No cancel button showing when creating new user via new review
issue link - #3604
Checklist:
Screenshots & recording
Screencast.from.26-03-25.03.50.30.PM.IST.webm
Manual review steps
I've run all the tests to ensure that none of the existing tests breaking due to my changes.
Manual reviewer: please leave a comment with output from the test if that's the case.