Disable TC sliders during active run in closed-loop mode

Temp-soll and heatrate-soll are only editable when closed-loop AND
sud is paused or stopped; during a running sud the schedule owns those
setpoints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SH2D4LRuCnhLSzoYerAfJX
This commit is contained in:
2026-06-28 10:31:20 +02:00
co-authored by Claude Sonnet 4.6
parent f55d085ae4
commit 35e50f5644
+2 -2
View File
@@ -477,8 +477,8 @@ function updateStatusLine() {
// Stirrer: whenever not running. Checkbox: whenever not running.
function updateControlsEnabled() {
const sudRunning = RUNNING_STATES.has(sudState);
document.getElementById('temp-soll').disabled = !closedLoop;
document.getElementById('heatrate-soll').disabled = !closedLoop;
document.getElementById('temp-soll').disabled = !(closedLoop && !sudRunning);
document.getElementById('heatrate-soll').disabled = !(closedLoop && !sudRunning);
document.getElementById('heater-power').disabled = !(!closedLoop && !sudRunning);
document.getElementById('stirrer-speed').disabled = sudRunning;
document.getElementById('closed-loop').disabled = sudRunning;