[fix](trx-frontend-http): add NOAA APT and Meteor LRPT to bookmark decode checkboxes
The Add Bookmark popup was missing NOAA APT (wxsat) and Meteor LRPT decoder checkboxes. Added them to the HTML form, the read/write functions, and the decoder toggle logic when applying bookmarks. https://claude.ai/code/session_01FMcYoHGy5K21maudnntueB Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -461,6 +461,8 @@
|
||||
<label class="bm-decoder-check"><input type="checkbox" id="bm-dec-ft2" value="ft2" /> FT2</label>
|
||||
<label class="bm-decoder-check"><input type="checkbox" id="bm-dec-wspr" value="wspr" /> WSPR</label>
|
||||
<label class="bm-decoder-check"><input type="checkbox" id="bm-dec-hf-aprs" value="hf-aprs" /> HF APRS</label>
|
||||
<label class="bm-decoder-check"><input type="checkbox" id="bm-dec-wxsat" value="wxsat" /> NOAA APT</label>
|
||||
<label class="bm-decoder-check"><input type="checkbox" id="bm-dec-lrpt" value="lrpt" /> Meteor LRPT</label>
|
||||
</div>
|
||||
</div>
|
||||
<label class="bm-label bm-label-wide">Comment
|
||||
|
||||
@@ -236,6 +236,8 @@ function bmReadDecoders() {
|
||||
if (document.getElementById("bm-dec-ft2").checked) decoders.push("ft2");
|
||||
if (document.getElementById("bm-dec-wspr").checked) decoders.push("wspr");
|
||||
if (document.getElementById("bm-dec-hf-aprs").checked) decoders.push("hf-aprs");
|
||||
if (document.getElementById("bm-dec-wxsat").checked) decoders.push("wxsat");
|
||||
if (document.getElementById("bm-dec-lrpt").checked) decoders.push("lrpt");
|
||||
return decoders;
|
||||
}
|
||||
|
||||
@@ -249,6 +251,8 @@ function bmWriteDecoders(decoders) {
|
||||
document.getElementById("bm-dec-ft2").checked = list.includes("ft2");
|
||||
document.getElementById("bm-dec-wspr").checked = list.includes("wspr");
|
||||
document.getElementById("bm-dec-hf-aprs").checked = list.includes("hf-aprs");
|
||||
document.getElementById("bm-dec-wxsat").checked = list.includes("wxsat");
|
||||
document.getElementById("bm-dec-lrpt").checked = list.includes("lrpt");
|
||||
}
|
||||
|
||||
function bmOpenForm(bm) {
|
||||
@@ -437,7 +441,7 @@ async function bmApply(bm) {
|
||||
toggles.push(postPath("/toggle_" + key.replace(/-/g, "_") + "_decode"));
|
||||
}
|
||||
};
|
||||
check("ft8"); check("ft4"); check("ft2"); check("wspr"); check("hf-aprs");
|
||||
check("ft8"); check("ft4"); check("ft2"); check("wspr"); check("hf-aprs"); check("wxsat"); check("lrpt");
|
||||
if (toggles.length) await Promise.all(toggles);
|
||||
}
|
||||
})() : Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user