feat(ui): improve radio operator experience
CI / lint (pull_request) Failing after 1s
CI / test (pull_request) Failing after 1s
CI / reuse (pull_request) Failing after 1s
CI / lint (push) Failing after 1s
CI / test (push) Failing after 1s
CI / reuse (push) Failing after 0s

This commit was merged in pull request #15.
This commit is contained in:
sjg
2026-08-01 02:24:47 +02:00
parent 6676b66993
commit a0bdaa2c4b
21 changed files with 528 additions and 65 deletions
@@ -599,7 +599,7 @@
const bmId = bmEl.value;
if (!bmId) {
alert("Please select a primary bookmark.");
window.trxUi?.notify("Select a primary bookmark before saving.", { kind: "error" });
return;
}
@@ -887,7 +887,7 @@
var recEl = tr.querySelector('[data-field="record"]');
var exEl = tr.querySelector('[data-field="exclusive"]');
if (bmEl && !bmEl.value) { alert('Please select a bookmark.'); return; }
if (bmEl && !bmEl.value) { window.trxUi?.notify("Select a bookmark before saving.", { kind: "error" }); bmEl.focus(); return; }
entry.start_min = hhmmToMin(startEl.value);
entry.end_min = hhmmToMin(endEl.value);
@@ -1236,10 +1236,10 @@
return el ? el.value : "";
}
function resetScheduler() {
async function resetScheduler() {
const rig = currentRigId;
if (!rig) return;
if (!confirm("Reset scheduler for this rig to Disabled?")) return;
if (!await window.trxUi.confirm({ title: "Reset scheduler?", message: "This rig's scheduler configuration will be reset to Disabled.", confirmLabel: "Reset" })) return;
apiDeleteScheduler(rig)
.then(function () {