Add config for "Number of Spots" and "Spot Age" values used in the web UI. Closes #79

This commit is contained in:
Ian Renton
2025-11-13 21:18:27 +00:00
parent 2165ebc103
commit 4f83468309
12 changed files with 77 additions and 22 deletions

View File

@@ -163,6 +163,13 @@ function loadOptions() {
generateMultiToggleFilterCard("#mode-options", "mode_type", options["mode_types"]);
generateMultiToggleFilterCard("#source-options", "source", options["spot_sources"]);
// Populate the Display panel
options["web-ui-options"]["max-spot-age"].forEach(sc => $("#max-spot-age").append($('<option>', {
value: sc * 60,
text: sc
})));
$("#max-spot-age").val(options["web-ui-options"]["max-spot-age-default"] * 60);
// Load settings from settings storage now all the controls are available
loadSettings();