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

@@ -101,11 +101,13 @@ export async function install_via_git_url(url, manager_dialog) {
const rebootButton = document.getElementById('cm-reboot-button');
const self = this;
rebootButton.onclick = function() {
if(rebootAPI()) {
manager_dialog.close();
}
};
rebootButton.addEventListener("click",
function() {
if(rebootAPI()) {
manager_dialog.close();
}
});
app.ui.dialog.element.style.zIndex = 10010;
}