fix: reboot button doesn't work

This commit is contained in:
Dr.Lt.Data
2023-12-09 09:35:48 +09:00
parent 0b923a593a
commit 92ac9ef51f
6 changed files with 36 additions and 29 deletions

View File

@@ -438,11 +438,12 @@ async function updateAll(update_check_checkbox, manager_dialog) {
app.ui.dialog.show("ComfyUI and all extensions have been updated to the latest version.<BR>To apply the updated custom node, please <button class='cm-small-button' id='cm-reboot-button'>RESTART</button> ComfyUI. And refresh browser.");
const rebootButton = document.getElementById('cm-reboot-button');
rebootButton.onclick = function() {
if(rebootAPI()) {
manager_dialog.close();
}
};
rebootButton.addEventListener("click",
function() {
if(rebootAPI()) {
manager_dialog.close();
}
});
app.ui.dialog.element.style.zIndex = 10010;
}