Merge pull request #1009 from JeLuF/BigX

Only delete task sections if they are no longer processing
This commit is contained in:
cmdr2 2023-03-14 21:57:59 +05:30 committed by GitHub
commit 24b631500a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,7 +298,10 @@ function showImages(reqBody, res, outputContainer, livePreview) {
allHidden = false;
}
}
if(allHidden === true) {parentTaskContainer.classList.add("displayNone")}
if(allHidden === true) {
const req = htmlTaskMap.get(parentTaskContainer)
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")}
}
})
})
}