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

#4644 disable buttons after clicking confirm on distribution/request #4667

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

jimmyli97
Copy link
Contributor

@jimmyli97 jimmyli97 commented Sep 26, 2024

Resolves #4644

Description

  • Disables all buttons on confirmation modals for distribution/requests after clicking "Yes it's correct"
  • Rspecs for above
  • Makes "Yes it's correct" buttons green

note that I was unable to reproduce any issues as a result of double clicking or clicking on multiple buttons after clicking on "Yes it's correct", so the rspecs check for disabled buttons only

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

passes test suite
manual testing by disabling form submission (set form action to javascript: void(0);) and modal hiding (comment out the hide modal line in assets/controllers/confirmation_controller.js#submitForm()) in dev tools

Screenshots

New color (same color as "Submit Essentials Request"):
image
image

Disabled buttons:
image

@jimmyli97 jimmyli97 marked this pull request as draft September 26, 2024 02:41
@jimmyli97 jimmyli97 changed the title WIP #4644 disable buttons after clicking confirm on distribution/request #4644 disable buttons after clicking confirm on distribution/request Sep 27, 2024
@jimmyli97 jimmyli97 marked this pull request as ready for review September 27, 2024 01:58
@cielf
Copy link
Collaborator

cielf commented Sep 28, 2024

@jimmyli97 FYI: We had an urgent fix that required all the senior contributors this week , so we didn't get to look at this. Hopefully this week will go better.

@dorner
Copy link
Collaborator

dorner commented Sep 30, 2024

All good on my end! @cielf did you want to take a look?

@cielf
Copy link
Collaborator

cielf commented Sep 30, 2024

Will do. Probably tomorrow, maybe Tuesday.

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cielf cielf merged commit 728568a into rubyforgood:main Sep 30, 2024
11 checks passed
Copy link
Contributor

github-actions bot commented Oct 6, 2024

@jimmyli97: Your PR #4644 disable buttons after clicking confirm on distribution/request is part of today's Human Essentials production release: 2024.10.06.
Thank you very much for your contribution!

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.

Disable doubleclick and dialog close on distribution, request confirmations. (Urgent)
3 participants