Merge branch 'za/2332-display-action-needed-text' of https://github.com/cisagov/manage.get.gov into za/2332-display-action-needed-text

This commit is contained in:
zandercymatics 2024-06-20 14:37:28 -06:00
commit aa26c9c1ca
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -568,7 +568,6 @@ function initializeWidgetOnList(list, parentId) {
// If we add a value, show it. // If we add a value, show it.
// This edge case applies to fixtures data. Prod data will have a changelog to pull from. // This edge case applies to fixtures data. Prod data will have a changelog to pull from.
let changeLog = document.querySelector(".dja-status-changelog"); let changeLog = document.querySelector(".dja-status-changelog");
console.log(`value is ===>${actionNeededReasonDropdown.value}<===`)
if(changeLog && changeLog.classList.contains("display-none") && actionNeededReasonDropdown.value){ if(changeLog && changeLog.classList.contains("display-none") && actionNeededReasonDropdown.value){
showElement(changeLog); showElement(changeLog);
} }
@ -577,7 +576,6 @@ function initializeWidgetOnList(list, parentId) {
handleChangeActionNeededEmail(actionNeededReasonDropdown, actionNeededEmail); handleChangeActionNeededEmail(actionNeededReasonDropdown, actionNeededEmail);
} }
// TODO fix edge case where nothing is selected
function handleChangeActionNeededEmail(actionNeededReasonDropdown, actionNeededEmail) { function handleChangeActionNeededEmail(actionNeededReasonDropdown, actionNeededEmail) {
actionNeededReasonDropdown.addEventListener("change", function() { actionNeededReasonDropdown.addEventListener("change", function() {
let noEmailMessage = document.getElementById("no-email-message"); let noEmailMessage = document.getElementById("no-email-message");