mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
Added a restart server button that makes an API call to the reboot API root.
This commit is contained in:
parent
f4ff481734
commit
ad9ba06ce1
@ -788,6 +788,13 @@ export class ComfyUI {
|
||||
}
|
||||
}
|
||||
}),
|
||||
$el("button", {
|
||||
id: "comfy-reboot-server-button", textContent: "Reboot Server", onclick: () => {
|
||||
if (!confirmClear.value || confirm("Are you sure you'd like to reboot the server?")) {
|
||||
api.fetchApi("/reboot")
|
||||
}
|
||||
}
|
||||
})
|
||||
]);
|
||||
|
||||
const devMode = this.settings.addSetting({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user