Only delete task sections if they are no longer processing

This commit is contained in:
JeLuF 2023-03-13 23:05:11 +01:00
parent 0fd706f392
commit 2916a33fa2

View File

@ -288,7 +288,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")}
}
})
})
}