fix(js): define wantsReg in renderTrunksTable
This commit is contained in:
1 parent
8a4d7a0504
commit
f429a48ad6
1 file changed
+1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user