сброс логов при сохранении

This commit is contained in:
Dmitry Borisenko
2022-08-30 21:29:05 +02:00
parent 62d8e8ddbe
commit 15e43b64d0
4 changed files with 7 additions and 6 deletions

View File

@@ -37,12 +37,12 @@
let opened = false;
let preventMove = false;
let showWidjetJson = false;
let devMode = false;
let devMode = true;
//****************************************************variable section**********************************************************/
//******************************************************************************************************************************/
let myip = document.location.hostname;
if (devMode) myip = "192.168.88.223";
if (devMode) myip = "192.168.88.221";
//Flags
let firstDevListRequest = true;
@@ -1138,7 +1138,7 @@
{/if}
</Route>
<Route path="/config">
<ConfigPage show={configReady} configJson={configJson} widgetsJson={widgetsJson} itemsJson={itemsJson} saveConfig={() => saveConfig()} rebootEsp={() => rebootEsp()} scenarioJson={scenarioJson} />
<ConfigPage show={configReady} configJson={configJson} widgetsJson={widgetsJson} itemsJson={itemsJson} saveConfig={() => saveConfig()} cleanLogs={() => cleanLogs()} rebootEsp={() => rebootEsp()} scenarioJson={scenarioJson} />
</Route>
<Route path="/connection">
<ConnectionPage show={connectionReady} rebootEsp={() => rebootEsp()} ssidClick={() => ssidClick()} saveSett={() => saveSett()} saveMqtt={() => saveMqtt()} settingsJson={settingsJson} errorsJson={errorsJson} ssidJson={ssidJson} />