Clear command log after saving.

This commit is contained in:
chriz
2026-01-26 23:29:23 +01:00
parent b5c249995f
commit 5662285a3e
4 changed files with 22 additions and 1 deletions
+6
View File
@@ -46,6 +46,12 @@ async function flashSave() {
var configContent = document.getElementById("config_display").value;
console.log("CONFIGURATION to save: ", configContent);
sendConfig(configContent);
// Clear the command log 1 second after initiating the config save
setTimeout(() => {
fetch('/cmd_log_clear', { method: 'GET' })
.then(response => console.log('Command log cleared', response))
.catch(err => console.error('Error clearing command log:', err));
}, 1000);
}
function clearConfig() {