Clear command log after saving.

This commit is contained in:
chriz committed 2026-01-26 23:29:23 +01:00
1 parent b5c249995f
commit 5662285a3e
4 files changed
+22 -1

No files matched your search

+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() {