[fix](trx-frontend-http): add FT4 to bookmark decoder read/write/apply
bmReadDecoders, bmWriteDecoders, and bmApply were all missing FT4, so the decoder checkbox was never saved and tuning a bookmark never toggled the FT4 decoder state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -182,6 +182,7 @@ function bmReadDecoders() {
|
||||
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-ft4").checked) decoders.push("ft4");
|
||||
if (document.getElementById("bm-dec-wspr").checked) decoders.push("wspr");
|
||||
if (document.getElementById("bm-dec-hf-aprs").checked) decoders.push("hf-aprs");
|
||||
return decoders;
|
||||
@@ -193,6 +194,7 @@ function bmWriteDecoders(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-ft4").checked = list.includes("ft4");
|
||||
document.getElementById("bm-dec-wspr").checked = list.includes("wspr");
|
||||
document.getElementById("bm-dec-hf-aprs").checked = list.includes("hf-aprs");
|
||||
}
|
||||
@@ -352,6 +354,10 @@ async function bmApply(bm) {
|
||||
if (wantFt8 !== !!st.ft8_decode_enabled) {
|
||||
await postPath("/toggle_ft8_decode");
|
||||
}
|
||||
const wantFt4 = bm.decoders.includes("ft4");
|
||||
if (wantFt4 !== !!st.ft4_decode_enabled) {
|
||||
await postPath("/toggle_ft4_decode");
|
||||
}
|
||||
const wantWspr = bm.decoders.includes("wspr");
|
||||
if (wantWspr !== !!st.wspr_decode_enabled) {
|
||||
await postPath("/toggle_wspr_decode");
|
||||
|
||||
Reference in New Issue
Block a user