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

@@ -130,12 +130,13 @@ export class ModelInstaller extends ComfyDialog {
if(btn_id) {
const rebootButton = document.getElementById(btn_id);
const self = this;
rebootButton.onclick = function() {
if(rebootAPI()) {
self.close();
self.manager_dialog.close();
}
};
rebootButton.addEventListener("click",
function() {
if(rebootAPI()) {
self.close();
self.manager_dialog.close();
}
});
}
}