move restart button from Settings to Version page. only show Factory Reset when in developer mode

This commit is contained in:
proddy
2026-04-28 20:09:22 +02:00
parent 3b765b308e
commit 2cbb5ec5f2
3 changed files with 112 additions and 148 deletions

View File

@@ -127,7 +127,7 @@ let system_status = {
}
],
// partitions: [],
developer_mode: true,
developer_mode: settings.developer_mode,
model: '',
board: '',
// model: 'BBQKees Electronics EMS Gateway E32 V2 (E32 V2.0 P3/2024011)',
@@ -4602,6 +4602,7 @@ router
.post(EMSESP_SETTINGS_ENDPOINT, async (request: any) => {
settings = await request.json();
console.log('application settings saved', settings);
system_status.developer_mode = settings.developer_mode;
return status(200); // no restart needed
// return status(205); // reboot required
})