diff --git a/frontend/index.html b/frontend/index.html index 6f8d9b6..61a935d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2158,7 +2158,10 @@ function onBerSubTypeChange(sel) { } else if (st === 'custom') { body.innerHTML = ``; } else { - body.innerHTML = buildBerPcHtml(); + const row = sel.closest('.ber-row'); + const type = row.querySelector('.ber-type').value; + const allowed = type === 'error' ? ['display','tone'] : undefined; + body.innerHTML = buildBerPcHtml(allowed); const pc = body.querySelector('.ber-pc'); berPopulateDevices(pc); onBerPcTypeChange(pc.querySelector('.ber-pc-type'));