fix: use has_source (snake_case) not hasSource in JS — button was never rendering
This commit is contained in:
parent
3bc08d491e
commit
3e8583b367
1 changed files with 2 additions and 2 deletions
|
|
@ -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>'
|
||||||
: '';
|
: '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue