fix(ui): sync role select to live role; mark RF chip unavailable on poll failure

This commit is contained in:
2026-08-22 19:26:39 -06:00
parent a1b449c9be
commit 107cf17611
3 changed files with 18 additions and 7 deletions
@@ -482,6 +482,7 @@ views.pineap = (root) => {
const rfResult = h('div', { class: 'mk8-rf-result', text: '' });
function renderRfStatus(d) {
const role = d.role || 'idle';
if (document.activeElement !== rfSel) rfSel.value = role;
rfStatusBadge.textContent = role.toUpperCase();
rfStatusBadge.className = 'badge ' +
(role === 'uplink' ? (d.assoc ? 'on' : 'warn') : role === 'attack' ? 'warn' : 'off');