[fix](trx-frontend-http): hide scheduler controls in main view when scheduler disabled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-26 21:35:06 +01:00
parent 79fcb1ba9c
commit 20a22622e7
2 changed files with 5 additions and 1 deletions
@@ -308,7 +308,7 @@
<div class="label"><span>Channels / Scheduler</span></div>
<div class="channel-scheduler-controls">
<div class="vchan-picker" id="vchan-picker"></div>
<div class="scheduler-control-row">
<div class="scheduler-control-row" style="display:none">
<div class="scheduler-release-wrap">
<button id="scheduler-release-btn" type="button">Release to Scheduler</button>
<div class="scheduler-step-controls">
@@ -354,6 +354,10 @@
// Mode selector
setSelected("scheduler-mode-select", mode);
// Show/hide main-view scheduler controls
const controlRow = document.querySelector(".scheduler-control-row");
if (controlRow) controlRow.style.display = mode !== "disabled" ? "" : "none";
// Show/hide sections
const glSection = document.getElementById("scheduler-grayline-section");
const tsSection = document.getElementById("scheduler-timespan-section");