[fix](trx-frontend-http): fix scheduler virtual channel selection
Apply scheduler-backed virtual channels as real manual selections so they take control, retune the rig, and restore bookmark decoder state including APRS/PKT. Also remove the inner border from the map decode locator tooltip.\n\nVerification: cargo test -p trx-frontend-http vchan\nVerification: node --check src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/vchan.js\n\nCo-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -245,6 +245,7 @@ async function vchanDelete(channelId) {
|
||||
async function vchanSubscribe(channelId) {
|
||||
if (!vchanSessionId || !vchanRigId) return;
|
||||
try {
|
||||
await vchanTakeSchedulerControl();
|
||||
const resp = await fetch(
|
||||
`/channels/${encodeURIComponent(vchanRigId)}/${encodeURIComponent(channelId)}/subscribe`,
|
||||
{
|
||||
@@ -418,6 +419,7 @@ async function vchanSetChannelFreq(freqHz) {
|
||||
}
|
||||
}
|
||||
try {
|
||||
await vchanTakeSchedulerControl();
|
||||
const resp = await fetch(
|
||||
`/channels/${encodeURIComponent(vchanRigId)}/${encodeURIComponent(vchanActiveId)}/freq`,
|
||||
{
|
||||
@@ -435,6 +437,7 @@ async function vchanSetChannelFreq(freqHz) {
|
||||
async function vchanSetChannelBandwidth(bwHz) {
|
||||
if (!vchanRigId || !vchanActiveId) return;
|
||||
try {
|
||||
await vchanTakeSchedulerControl();
|
||||
const resp = await fetch(
|
||||
`/channels/${encodeURIComponent(vchanRigId)}/${encodeURIComponent(vchanActiveId)}/bw`,
|
||||
{
|
||||
@@ -452,6 +455,7 @@ async function vchanSetChannelBandwidth(bwHz) {
|
||||
async function vchanSetChannelMode(mode) {
|
||||
if (!vchanRigId || !vchanActiveId) return;
|
||||
try {
|
||||
await vchanTakeSchedulerControl();
|
||||
const resp = await fetch(
|
||||
`/channels/${encodeURIComponent(vchanRigId)}/${encodeURIComponent(vchanActiveId)}/mode`,
|
||||
{
|
||||
|
||||
@@ -1773,7 +1773,6 @@ body.map-fake-fullscreen-active {
|
||||
max-height: min(22rem, 60vh);
|
||||
overflow: auto;
|
||||
padding: 0.55rem 0.65rem;
|
||||
border: 1px solid color-mix(in srgb, var(--accent-yellow) 26%, var(--border-light));
|
||||
border-radius: 0.65rem;
|
||||
background: color-mix(in srgb, var(--card-bg) 84%, transparent);
|
||||
color: var(--text);
|
||||
|
||||
Reference in New Issue
Block a user