diff --git a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/app.vue b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/app.vue index bd8771281f..237d66804c 100644 --- a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/app.vue +++ b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/app.vue @@ -3,7 +3,7 @@ import { computed, inject, ref, watchEffect } from "vue"; import StyleSettings from "./style-settings.vue"; import Select from "./input/select.vue"; import Input from "./input/input.vue"; -import PassPreview from "./pass-preview.vue"; +import PassPreview from "./preview/pass-preview.vue"; import { StoreKey } from "../walletStore"; const gettext = (window as any).gettext; diff --git a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/placeholder-field-settings.vue b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/placeholder-field-settings.vue index fe5efed362..cde081c79d 100644 --- a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/placeholder-field-settings.vue +++ b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/placeholder-field-settings.vue @@ -52,12 +52,12 @@ watchEffect(() => { table.table.table-hover thead tr - th.col-md-5(v-if="fieldgroup.labels") {{ gettext('Label') }} - th(:class="'col-md-' + (fieldgroup.labels ? '6' : '11')") {{ gettext('Content') }} + th.col-md-5(v-if="fieldgroup.display == 'with_label'") {{ gettext('Label') }} + th(:class="'col-md-' + (fieldgroup.display == 'with_label' ? '6' : '11')") {{ gettext('Content') }} th.col-xs-1 tbody tr(v-for="n,i in fieldConfig.entries.length" :key="i") - td(v-if="fieldgroup.labels") + td(v-if="fieldgroup.display == 'with_label'") .i18n-form-group I18nInput(v-model="fieldConfig.entries[n-1].label") td diff --git a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/style-settings.vue b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/style-settings.vue index ab5cb2353c..eb274796b3 100644 --- a/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/style-settings.vue +++ b/src/pretix/plugins/wallet/static/pretixplugins/wallet/components/style-settings.vue @@ -6,19 +6,10 @@ import PredefinedFieldSettings from "./predefined-field-settings.vue"; const gettext = (window as any).gettext; const props = defineProps<{ - style?: Style; + style?: Style; }>(); const layout = defineModel(); - -watchEffect(() => { - if (layout.value === undefined) { - return - } - if (layout.value.fieldgroups === undefined) { - layout.value.fieldgroups = {}; - } -});