Skip to content

Commit

Permalink
Merge pull request #2694 from cisagov/staging-action-needed-email-hotfix
Browse files Browse the repository at this point in the history
Hotfix JS for edit email button not found
  • Loading branch information
abroddrick authored Sep 3, 2024
2 parents bf2079a + 29a6a53 commit 2593c41
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/registrar/assets/js/get-gov-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ function initializeWidgetOnList(list, parentId) {
var actionNeededEmailReadonlyTextarea = document.querySelector("#action-needed-reason-email-readonly-textarea")

// Edit e-mail modal (and its confirmation button)
var actionNeededEmailAlreadySentModal = document.querySelector("#email-already-sent-modal")
var confirmEditEmailButton = document.querySelector("#email-already-sent-modal_continue-editing-button")

// Headers and footers (which change depending on if the e-mail was sent or not)
Expand Down Expand Up @@ -561,11 +560,11 @@ function initializeWidgetOnList(list, parentId) {
updateActionNeededEmailDisplay(reason)
});

editEmailButton.addEventListener("click", function() {
if (!checkEmailAlreadySent()) {
showEmail(canEdit=true)
}
});
// editEmailButton.addEventListener("click", function() {
// if (!checkEmailAlreadySent()) {
// showEmail(canEdit=true)
// }
// });

confirmEditEmailButton.addEventListener("click", function() {
// Show editable view
Expand Down

0 comments on commit 2593c41

Please sign in to comment.