mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
Vue3: Minor fixes in checkinlist editor
This commit is contained in:
@@ -75,10 +75,14 @@ const missingItems = computed(() => {
|
|||||||
li.active(role="presentation")
|
li.active(role="presentation")
|
||||||
a(href="#rules-edit", role="tab", data-toggle="tab")
|
a(href="#rules-edit", role="tab", data-toggle="tab")
|
||||||
span.fa.fa-edit
|
span.fa.fa-edit
|
||||||
|
// space between icon and string
|
||||||
|
|
|
||||||
| {{ gettext("Edit") }}
|
| {{ gettext("Edit") }}
|
||||||
li(role="presentation")
|
li(role="presentation")
|
||||||
a(href="#rules-viz", role="tab", data-toggle="tab")
|
a(href="#rules-viz", role="tab", data-toggle="tab")
|
||||||
span.fa.fa-eye
|
span.fa.fa-eye
|
||||||
|
// space between icon and string
|
||||||
|
|
|
||||||
| {{ gettext("Visualize") }}
|
| {{ gettext("Visualize") }}
|
||||||
|
|
||||||
//- Tab panes
|
//- Tab panes
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const rules = ref<any>({})
|
|||||||
// grab rules from hidden input
|
// grab rules from hidden input
|
||||||
const rulesInput = document.querySelector<HTMLInputElement>('#id_rules')
|
const rulesInput = document.querySelector<HTMLInputElement>('#id_rules')
|
||||||
if (rulesInput?.value) {
|
if (rulesInput?.value) {
|
||||||
rules.value = JSON.parse(rulesInput.value)
|
rules.value = JSON.parse(rulesInput.value) ?? {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sync back to hidden input
|
// sync back to hidden input
|
||||||
|
|||||||
Reference in New Issue
Block a user