mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-03 08:41:35 -07:00
Add next scan ETA display and update app state with scan timing information
This commit is contained in:
@@ -175,6 +175,16 @@ class NetAlertXStateManager {
|
||||
}
|
||||
}
|
||||
|
||||
// 5. Dispatch scan ETA update for pages that display next-scan timing
|
||||
if (appState["last_scan_run"] !== undefined || appState["next_scan_time"] !== undefined) {
|
||||
document.dispatchEvent(new CustomEvent('nax:scanEtaUpdate', {
|
||||
detail: {
|
||||
lastScanRun: appState["last_scan_run"],
|
||||
nextScanTime: appState["next_scan_time"]
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
// console.log("[NetAlertX State] UI updated via jQuery");
|
||||
} catch (e) {
|
||||
console.error("[NetAlertX State] Failed to update state display:", e);
|
||||
|
||||
Reference in New Issue
Block a user