diff --git a/frontend/index.html b/frontend/index.html index 61a935d..d0a62a1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2066,6 +2066,11 @@ function onBerTypeChange(sel) { body.innerHTML = ``; } else if (type === 'chaining') { body.innerHTML = buildScriptChainingRow(row.dataset.berIdx); + } else if (type === 'error') { + body.innerHTML = buildErrorActionRow(); + const actionType = body.querySelector('.error-action-type'); + onErrorActionTypeChange(actionType); + updateBerRow(sel); } else { body.innerHTML = `
+ body.innerHTML = ``; - } } else if (st === 'custom') { body.innerHTML = ``; } else { - const row = sel.closest('.ber-row'); - const type = row.querySelector('.ber-type').value; - const allowed = type === 'error' ? ['display','tone'] : undefined; - body.innerHTML = buildBerPcHtml(allowed); + body.innerHTML = buildBerPcHtml(); const pc = body.querySelector('.ber-pc'); berPopulateDevices(pc); onBerPcTypeChange(pc.querySelector('.ber-pc-type'));