mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
Update get-gov-admin.js
This commit is contained in:
parent
aa26c9c1ca
commit
81aa48d084
1 changed files with 3 additions and 2 deletions
|
@ -549,7 +549,7 @@ function initializeWidgetOnList(list, parentId) {
|
|||
// If you need to account for the non-readonly version as well, you will need to check
|
||||
// for both of these things seperately.
|
||||
let actionNeededEmail = document.querySelector("#action_needed_reason_email_view_more");
|
||||
|
||||
let changeLog = document.querySelector(".dja-status-changelog");
|
||||
|
||||
if(actionNeededReasonDropdown && actionNeededEmail) {
|
||||
let emailContainer = actionNeededEmail.closest(".dja-readonly-textarea-container");
|
||||
|
@ -567,7 +567,6 @@ function initializeWidgetOnList(list, parentId) {
|
|||
// We hide the table if there isn't any data to start with.
|
||||
// If we add a value, show it.
|
||||
// This edge case applies to fixtures data. Prod data will have a changelog to pull from.
|
||||
let changeLog = document.querySelector(".dja-status-changelog");
|
||||
if(changeLog && changeLog.classList.contains("display-none") && actionNeededReasonDropdown.value){
|
||||
showElement(changeLog);
|
||||
}
|
||||
|
@ -592,6 +591,8 @@ function initializeWidgetOnList(list, parentId) {
|
|||
// Show the "no email" message
|
||||
showElement(noEmailMessage);
|
||||
return;
|
||||
}else if(changeLog && changeLog.classList.contains("display-none") && actionNeededReasonDropdown.value){
|
||||
showElement(changeLog);
|
||||
}
|
||||
|
||||
fetch(`/get-domain-requests-json/${pk}/action-needed-email/${reason}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue