Forgot a color change for batched tasks. taskStatusLabel could have class activeTaskLabel replace by waitingTaskLabel again.

This commit is contained in:
Marc-Andre Ferland 2022-10-14 04:18:34 -04:00
parent 1ec9d986bb
commit 476e938d23

View File

@ -532,6 +532,9 @@ async function doMakeImage(task) {
throw new Error('Endpoint response does not contains a response stream url.')
}
task['taskStatusLabel'].innerText = "Busy/Waiting"
task['taskStatusLabel'].classList.add('waitingTaskLabel')
task['taskStatusLabel'].classList.remove('activeTaskLabel')
do { // Wait for server status to update.
await asyncDelay(250)
if (!isServerAvailable()) {