From 2916a33fa218884fb1dd9e0066390b05446fa6fd Mon Sep 17 00:00:00 2001 From: JeLuF Date: Mon, 13 Mar 2023 23:05:11 +0100 Subject: [PATCH] Only delete task sections if they are no longer processing --- ui/media/js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 59d474f8..494fdc5d 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -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")} + } }) }) }