From d1131c4e2d3330d0332ba22f87ab81fe40b76c27 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Mar 2026 15:04:17 +0800 Subject: [PATCH] fix(frontend): show fault/comm locked state in runtime badge Co-Authored-By: Claude Sonnet 4.6 --- web/js/units.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/js/units.js b/web/js/units.js index ca71781..831ab93 100644 --- a/web/js/units.js +++ b/web/js/units.js @@ -76,6 +76,8 @@ async function selectUnit(unitId) { function runtimeBadge(runtime) { if (!runtime) return 'OFFLINE'; + if (runtime.comm_locked) return 'COMM ERR'; + if (runtime.fault_locked) return 'FAULT'; const stateLabels = { stopped: 'STOPPED', running: 'RUNNING',