From e542bb606da7e65ceab4c85485c03804de3d4c56 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 11 May 2026 18:51:21 +0200 Subject: [PATCH] Vue3: Minor fixes in checkinlist editor --- src/pretix/static/pretixcontrol/js/ui/checkinrules/App.vue | 4 ++++ .../static/pretixcontrol/js/ui/checkinrules/django-interop.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pretix/static/pretixcontrol/js/ui/checkinrules/App.vue b/src/pretix/static/pretixcontrol/js/ui/checkinrules/App.vue index df2f7471c9..7c6f5c5cf7 100644 --- a/src/pretix/static/pretixcontrol/js/ui/checkinrules/App.vue +++ b/src/pretix/static/pretixcontrol/js/ui/checkinrules/App.vue @@ -75,10 +75,14 @@ const missingItems = computed(() => { li.active(role="presentation") a(href="#rules-edit", role="tab", data-toggle="tab") span.fa.fa-edit + // space between icon and string + | | {{ gettext("Edit") }} li(role="presentation") a(href="#rules-viz", role="tab", data-toggle="tab") span.fa.fa-eye + // space between icon and string + | | {{ gettext("Visualize") }} //- Tab panes diff --git a/src/pretix/static/pretixcontrol/js/ui/checkinrules/django-interop.ts b/src/pretix/static/pretixcontrol/js/ui/checkinrules/django-interop.ts index 9ebaaf2bc2..b19235191a 100644 --- a/src/pretix/static/pretixcontrol/js/ui/checkinrules/django-interop.ts +++ b/src/pretix/static/pretixcontrol/js/ui/checkinrules/django-interop.ts @@ -17,7 +17,7 @@ export const rules = ref({}) // grab rules from hidden input const rulesInput = document.querySelector('#id_rules') if (rulesInput?.value) { - rules.value = JSON.parse(rulesInput.value) + rules.value = JSON.parse(rulesInput.value) ?? {} } // sync back to hidden input