improve: better message.

This commit is contained in:
dr.lt.data
2023-09-19 13:27:41 +09:00
parent fc528e8be2
commit ca2a9b894f
2 changed files with 21 additions and 5 deletions

View File

@@ -265,9 +265,15 @@ async function updateAll(update_check_checkbox) {
app.ui.dialog.element.style.zIndex = 9999;
return false;
}
app.ui.dialog.show('ComfyUI and all extensions have been updated to the latest version.');
app.ui.dialog.element.style.zIndex = 9999;
if(response1.status == 201 || response2.status == 201) {
app.ui.dialog.show('ComfyUI and all extensions have been updated to the latest version.');
app.ui.dialog.element.style.zIndex = 9999;
update_check_checkbox.checked = false;
}
else {
app.ui.dialog.show('ComfyUI and all extensions are already up-to-date with the latest versions.');
app.ui.dialog.element.style.zIndex = 9999;
}
return true;
}