mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
move restart button from Settings to Version page. only show Factory Reset when in developer mode
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user