Panel: unticking 'web panel enabled' + restart panel really turns it off (2.9.5)
The restart used to refuse when the panel was disabled, so it stayed reachable. Now it stops the panel (also the relay on the game port); 'panel on|off' in the console turns it on/off and saves server.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -323,6 +323,11 @@ async function restartPanel() {
|
||||
if (!ok) return;
|
||||
const r = await act(api("POST", "server/restart-panel"));
|
||||
if (!r) return;
|
||||
if (r.disabled) {
|
||||
// Panel ausgeschaltet: nicht auf ein Neuladen warten
|
||||
document.body.replaceChildren(h("div", { class: "empty" }, r.message));
|
||||
return;
|
||||
}
|
||||
const target = r.url && r.url !== location.origin + location.pathname ? r.url : location.href;
|
||||
// Warten, bis das Panel wieder antwortet, dann neu laden
|
||||
const started = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user