Skip to content

Commit 3fab3a2

Browse files
rootroot
authored andcommitted
Fix: Load all systems when none selected
1 parent 42eef36 commit 3fab3a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

static/js/dashboard/tone_finder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ async function fetchSystems() {
717717
const {success, result, message} = await resp.json();
718718
if (!success) throw new Error(message || "API error");
719719

720-
els.sysSel.innerHTML = '<option value="">Select system…</option>';
720+
els.sysSel.innerHTML = '<option value="">All Systems</option>';
721721
result.forEach(sys => {
722722
const opt = document.createElement("option");
723723
opt.value = sys.radio_system_id;
@@ -1011,10 +1011,10 @@ async function onRowClick(e) {
10111011
7) PAGE-LEVEL ORCHESTRATION (filters, timers, validation)
10121012
==================================================================== */
10131013

1014-
/** Load calls if a system is selected; else clear table. */
1014+
/** Load calls for selected system (or all if none selected). */
10151015
function maybeLoad() {
10161016
if (!table) return;
1017-
els.sysSel.value ? loadCalls() : table.clear().draw();
1017+
loadCalls(); // Load all systems if no selection
10181018
applyRefreshInterval();
10191019
}
10201020

@@ -1027,7 +1027,7 @@ function applyRefreshInterval() {
10271027
const ms = Number(els.autoRef.value) || 0;
10281028
if (ms > 0) {
10291029
refreshTimer = setInterval(() => {
1030-
if (els.sysSel.value) loadCalls();
1030+
loadCalls(); // Works with all systems too
10311031
}, ms);
10321032
}
10331033
}

0 commit comments

Comments
 (0)