Skip to content

Commit

Permalink
Merge pull request #15221 from AUTOMATIC1111/fix-Restore-progress
Browse files Browse the repository at this point in the history
fix "Restore progress" button
  • Loading branch information
AUTOMATIC1111 authored Mar 16, 2024
2 parents 03ea0f3 + 1a1205f commit f7bad19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions javascript/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ function showSubmitInterruptingPlaceholder(tabname) {
function showRestoreProgressButton(tabname, show) {
var button = gradioApp().getElementById(tabname + "_restore_progress");
if (!button) return;

button.style.display = show ? "flex" : "none";
button.style.setProperty('display', show ? 'flex' : 'none', 'important');
}

function submit() {
Expand Down Expand Up @@ -209,6 +208,7 @@ function restoreProgressTxt2img() {
var id = localGet("txt2img_task_id");

if (id) {
showSubmitInterruptingPlaceholder('txt2img');
requestProgress(id, gradioApp().getElementById('txt2img_gallery_container'), gradioApp().getElementById('txt2img_gallery'), function() {
showSubmitButtons('txt2img', true);
}, null, 0);
Expand All @@ -223,6 +223,7 @@ function restoreProgressImg2img() {
var id = localGet("img2img_task_id");

if (id) {
showSubmitInterruptingPlaceholder('img2img');
requestProgress(id, gradioApp().getElementById('img2img_gallery_container'), gradioApp().getElementById('img2img_gallery'), function() {
showSubmitButtons('img2img', true);
}, null, 0);
Expand Down

0 comments on commit f7bad19

Please sign in to comment.