Fix Error Action proactive: filter REFRESH out of allowed commands
When Error Action (tag 82) uses the Proactive command subtype, only DISPLAY TEXT and PLAY TONE are allowed per TS 102 226 Table 5.9. Pass allowed=['display','tone'] to buildBerPcHtml for error-type rows.
This commit is contained in:
+4
-1
@@ -2158,7 +2158,10 @@ function onBerSubTypeChange(sel) {
|
|||||||
} else if (st === 'custom') {
|
} else if (st === 'custom') {
|
||||||
body.innerHTML = `<input class="ber-hex w-full font-mono text-xs border border-gray-300 dark:border-slate-600 rounded px-1 py-1 dark:bg-slate-700 dark:text-slate-300" placeholder="hex" oninput="updateBerRow(this)">`;
|
body.innerHTML = `<input class="ber-hex w-full font-mono text-xs border border-gray-300 dark:border-slate-600 rounded px-1 py-1 dark:bg-slate-700 dark:text-slate-300" placeholder="hex" oninput="updateBerRow(this)">`;
|
||||||
} else {
|
} 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');
|
const pc = body.querySelector('.ber-pc');
|
||||||
berPopulateDevices(pc);
|
berPopulateDevices(pc);
|
||||||
onBerPcTypeChange(pc.querySelector('.ber-pc-type'));
|
onBerPcTypeChange(pc.querySelector('.ber-pc-type'));
|
||||||
|
|||||||
Reference in New Issue
Block a user