feat(badges): wire duplex field — hide badge back for single-sided templates

- Add duplex + style_href to properties_to_save so they're cached in IDB
- Derive show_badge_back: true when duplex is null/unset (safe default for
  existing templates) or 1; false when duplex=0 (single-sided, e.g. Axonius
  NYC using Zebra ZC10L PVC cards)
- Wrap entire badge_back section in {#if show_badge_back} so the DOM node
  is fully removed rather than just hidden — cleaner than a CSS class approach

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-02 16:06:51 -05:00
parent 827c7ac62e
commit 51cfcbf2d6
2 changed files with 11 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ export const properties_to_save = [
'show_qr_back',
'layout',
'style_filename',
'style_href',
'duplex',
'enable',
'hide',
'priority',