fix(badges): properly suppress pronouns and lead scanning with {#if false}
HTML comments don't suppress Svelte {#if} blocks — the content was rendering
unconditionally. Switch to {#if false} so the blocks are genuinely hidden.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1314,8 +1314,7 @@ let allow_tracking_open = $derived(
|
|||||||
{/if}<!-- field_shown: location -->
|
{/if}<!-- field_shown: location -->
|
||||||
|
|
||||||
<!-- === ALLOW TRACKING (Lead Scanning) === -->
|
<!-- === ALLOW TRACKING (Lead Scanning) === -->
|
||||||
<!-- AXONIUS 2026: Lead scanning canceled — commented out temporarily -->
|
{#if false}<!-- AXONIUS 2026: Lead scanning canceled — restore by changing to {#if field_shown('allow_tracking')} -->
|
||||||
<!-- {#if field_shown('allow_tracking')} -->
|
|
||||||
<div
|
<div
|
||||||
class="field-card overflow-hidden rounded-lg"
|
class="field-card overflow-hidden rounded-lg"
|
||||||
class:field-card--active={active_field ===
|
class:field-card--active={active_field ===
|
||||||
@@ -1455,11 +1454,10 @@ let allow_tracking_open = $derived(
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- {/if} --><!-- field_shown: allow_tracking -->
|
{/if}<!-- field_shown: allow_tracking -->
|
||||||
|
|
||||||
<!-- === PRONOUNS === -->
|
<!-- === PRONOUNS === -->
|
||||||
<!-- AXONIUS 2026: not on this badge template — commented out temporarily -->
|
{#if false}<!-- AXONIUS 2026: not on this badge template — restore by changing to {#if field_shown('pronouns')} -->
|
||||||
<!-- {#if field_shown('pronouns')} -->
|
|
||||||
<div
|
<div
|
||||||
class="field-card overflow-hidden rounded-lg"
|
class="field-card overflow-hidden rounded-lg"
|
||||||
class:field-card--active={active_field === 'pronouns'}>
|
class:field-card--active={active_field === 'pronouns'}>
|
||||||
@@ -1531,7 +1529,7 @@ let allow_tracking_open = $derived(
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- {/if} --><!-- field_shown: pronouns -->
|
{/if}<!-- field_shown: pronouns -->
|
||||||
</div>
|
</div>
|
||||||
<!-- ctrl-accordion-inner attendee -->
|
<!-- ctrl-accordion-inner attendee -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user