diff --git a/ui/media/js/main.js b/ui/media/js/main.js index e515787b..d83a8c9d 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1138,7 +1138,7 @@ widthField.addEventListener('change', onDimensionChange) heightField.addEventListener('change', onDimensionChange) function renameMakeImageButton() { - let totalImages = Math.max(parseInt(numOutputsTotalField.value), parseInt(numOutputsParallelField.value)) + let totalImages = Math.max(parseInt(numOutputsTotalField.value), parseInt(numOutputsParallelField.value)) * getPrompts().length let imageLabel = 'Image' if (totalImages > 1) { imageLabel = totalImages + ' Images' @@ -1483,6 +1483,9 @@ function resumeClient() { }) } +promptField.addEventListener("input", debounce( renameMakeImageButton, 1000) ) + + pauseBtn.addEventListener("click", function () { pauseClient = true pauseBtn.style.display="none"