forked from CGM_Public/pretix_original
Vue3: Minor fixes in checkinlist editor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -17,7 +17,7 @@ export const rules = ref<any>({})
|
||||
// grab rules from hidden input
|
||||
const rulesInput = document.querySelector<HTMLInputElement>('#id_rules')
|
||||
if (rulesInput?.value) {
|
||||
rules.value = JSON.parse(rulesInput.value)
|
||||
rules.value = JSON.parse(rulesInput.value) ?? {}
|
||||
}
|
||||
|
||||
// sync back to hidden input
|
||||
|
||||
Reference in New Issue
Block a user