[feat](trx-frontend-http): expand background decode selection
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
+2
-1
@@ -5,7 +5,7 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const SUPPORTED_DECODERS = ["ft8", "wspr", "hf-aprs"];
|
||||
const SUPPORTED_DECODERS = ["aprs", "ais", "ft8", "wspr", "hf-aprs"];
|
||||
|
||||
let backgroundDecodeRole = null;
|
||||
let currentRigId = null;
|
||||
@@ -303,6 +303,7 @@
|
||||
case "no_supported_decoders": return "Unsupported";
|
||||
case "disabled": return "Disabled";
|
||||
case "handled_by_scheduler": return "Scheduler";
|
||||
case "handled_by_virtual_channel": return "VChan";
|
||||
default: return "Inactive";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,6 +148,8 @@ function bmRender(list) {
|
||||
// Read decoder checkboxes and return an array of selected decoder names.
|
||||
function bmReadDecoders() {
|
||||
const decoders = [];
|
||||
if (document.getElementById("bm-dec-aprs").checked) decoders.push("aprs");
|
||||
if (document.getElementById("bm-dec-ais").checked) decoders.push("ais");
|
||||
if (document.getElementById("bm-dec-ft8").checked) decoders.push("ft8");
|
||||
if (document.getElementById("bm-dec-wspr").checked) decoders.push("wspr");
|
||||
if (document.getElementById("bm-dec-hf-aprs").checked) decoders.push("hf-aprs");
|
||||
@@ -157,6 +159,8 @@ function bmReadDecoders() {
|
||||
// Set decoder checkboxes to match the given array.
|
||||
function bmWriteDecoders(decoders) {
|
||||
const list = decoders || [];
|
||||
document.getElementById("bm-dec-aprs").checked = list.includes("aprs");
|
||||
document.getElementById("bm-dec-ais").checked = list.includes("ais");
|
||||
document.getElementById("bm-dec-ft8").checked = list.includes("ft8");
|
||||
document.getElementById("bm-dec-wspr").checked = list.includes("wspr");
|
||||
document.getElementById("bm-dec-hf-aprs").checked = list.includes("hf-aprs");
|
||||
|
||||
Reference in New Issue
Block a user