Skip to content

Commit

Permalink
Merge issue with Download packages and consult fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aparna-aot committed Nov 14, 2024
1 parent 45a5055 commit 27e50e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1287,15 +1287,15 @@ const useSaveRedlineForSignoff = (initDocInstance, initDocViewer) => {
isOILayerSelected;
}
};
const checkSavingConsults = (documentList, instance) => {
const checkSavingConsults = (documentList, isOILayerSelected, instance) => {
const publicBodyList = getPublicBodyList(documentList);
setDocumentPublicBodies(publicBodyList);
setEnableSavingConsults(
publicBodyList.length > 0
publicBodyList.length > 0 || !isOILayerSelected
);
if (instance) {
const document = instance.UI.iframeWindow.document;
document.getElementById("consult_package").disabled = !(publicBodyList.length > 0);
document.getElementById("consult_package").disabled = !(publicBodyList.length > 0) || isOILayerSelected;
}
}
const triggerRedlineZipper = (
Expand Down
5 changes: 1 addition & 4 deletions web/src/components/FOI/Home/Redlining.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,10 +1432,7 @@ const Redlining = React.forwardRef(
const redlineReadyAndValid = readyForSignOff && validRedlineDownload;
const isOILayerSelected = currentLayer.name.toLowerCase() == "open info" ? true : false;
const oipcRedlineReadyAndValid = (validoipcreviewlayer === true && currentLayer.name.toLowerCase() === "oipc") && readyForSignOff;
checkSavingConsults(documentList, _instance);
checkSavingRedline(redlineReadyAndValid, _instance);
checkSavingOIPCRedline(oipcRedlineReadyAndValid, _instance, readyForSignOff);
checkSavingFinalPackage(redlineReadyAndValid, _instance);
checkSavingConsults(documentList, isOILayerSelected, _instance);
checkSavingRedline(redlineReadyAndValid, isOILayerSelected, _instance);
checkSavingOIPCRedline(oipcRedlineReadyAndValid, isOILayerSelected, _instance, readyForSignOff);
checkSavingFinalPackage(redlineReadyAndValid, isOILayerSelected, _instance);
Expand Down

0 comments on commit 27e50e5

Please sign in to comment.