Fix [object Object] in Variables button + allow preview of system templates
Some checks failed
Validate / Hassfest (push) Has been cancelled

- Escape {{ }} in Svelte template (use {'{{ }}'} string expression)
- Allow _get() to access system templates (user_id=0) for preview

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 19:02:35 +03:00
parent 693c157c31
commit aab29e253f
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@
<label class="text-xs text-[var(--color-muted-foreground)]">{t(`templateConfig.${slot.label}`)}</label>
{#if varsRef[slot.key]}
<button type="button" onclick={() => showVarsFor = slot.key}
class="text-xs text-[var(--color-muted-foreground)] hover:underline">{{ }} Variables</button>
class="text-xs text-[var(--color-muted-foreground)] hover:underline">{'{{ }}'} Variables</button>
{/if}
</div>
{#if (slot.rows || 2) > 2}