Fix: errors were overwritten by the time taken in the UI

This commit is contained in:
cmdr2 2022-12-14 16:51:30 +05:30
parent 80bc80dc2c
commit 7eb29fa91b

View File

@ -627,7 +627,9 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) {
time /= 1000
if (task.batchesDone == task.batchCount) {
if (!task.outputMsg.innerText.toLowerCase().includes('error')) {
task.outputMsg.innerText = `Processed ${task.numOutputsTotal} images in ${time} seconds`
}
task.progressBar.style.height = "0px"
task.progressBar.style.border = "0px solid var(--background-color3)"
task.progressBar.classList.remove("active")