fix: use has_source (snake_case) not hasSource in JS — button was never rendering

This commit is contained in:
Claus Lohmar 2026-10-14 15:01:59 +00:00
parent 3bc08d491e
commit 3e8583b367

View file

@ -41,11 +41,11 @@ function renderGroups(data) {
return '<li class="domain target">' + esc(d) + '</li>'; return '<li class="domain target">' + esc(d) + '</li>';
}).join(''); }).join('');
var noSource = !g.hasSource var noSource = !g.has_source
? '<div class="warn">No domain in this tag has headers yet. Set headers on one domain (via Zoraxy UI) to use it as the source.</div>' ? '<div class="warn">No domain in this tag has headers yet. Set headers on one domain (via Zoraxy UI) to use it as the source.</div>'
: ''; : '';
var actions = g.hasSource var actions = g.has_source
? '<button class="btn btn-primary btn-apply">Apply to ' + targetCount + ' target(s)</button>' + ? '<button class="btn btn-primary btn-apply">Apply to ' + targetCount + ' target(s)</button>' +
'<button class="btn btn-secondary btn-remove">Remove from targets</button>' '<button class="btn btn-secondary btn-remove">Remove from targets</button>'
: ''; : '';