diff --git a/src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue b/src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue index 428f12f5fa..587f491bc7 100644 --- a/src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue +++ b/src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue @@ -32,6 +32,7 @@

{{ checkResult.position.order }}-{{ checkResult.position.positionid }} {{ checkResult.position.attendee_name }}

{{ checkResult.reason_explanation }}
{{ checkResultItemvar }}
+ {{ checkResultSubevent }}
{{ checkResult.position.secret }}
{{ checkResult.position.seat.name }}
@@ -254,6 +255,13 @@ export default { const date = moment.utc(this.checkinlist.subevent.date_from).tz(this.$root.timezone).format(this.$root.datetime_format) return `${name} · ${date}` }, + checkResultSubevent() { + if (!this.checkResult) return '' + if (!this.checkResult.position.subevent) return '' + const name = i18nstring_localize(this.checkResult.position.subevent.name) + const date = moment.utc(this.checkResult.position.subevent.date_from).tz(this.$root.timezone).format(this.$root.datetime_format) + return `${name} · ${date}` + }, checkResultItemvar() { if (!this.checkResult) return '' if (this.checkResult.position.variation) { @@ -331,7 +339,7 @@ export default { this.$refs.input.blur() }) - fetch(this.$root.api.lists + this.checkinlist.id + '/positions/' + encodeURIComponent(id) + '/redeem/?expand=item&expand=variation', { + fetch(this.$root.api.lists + this.checkinlist.id + '/positions/' + encodeURIComponent(id) + '/redeem/?expand=item&expand=subevent&expand=variation', { method: 'POST', headers: { 'X-CSRFToken': document.querySelector("input[name=csrfmiddlewaretoken]").value,