fix(js): define wantsReg in renderTrunksTable

This commit is contained in:
sorcier committed 2026-11-03 19:11:18 +01:00
1 parent 8a4d7a0504
commit f429a48ad6
1 file changed
+1
+1
View File
@@ -1581,6 +1581,7 @@ function renderTrunksTable() {
const regInfo = regs[slug]; const regInfo = regs[slug];
const regMode = t.registration_mode || (Number(t.register) === 1 ? 'send' : 'none'); const regMode = t.registration_mode || (Number(t.register) === 1 ? 'send' : 'none');
const isIpAuth = t.auth_mode === 'ip'; const isIpAuth = t.auth_mode === 'ip';
const wantsReg = regMode === 'send' && !isIpAuth;
let statusBadge = ''; let statusBadge = '';
if (Number(t.enabled ?? 1) === 0) { if (Number(t.enabled ?? 1) === 0) {