Widget: Fix waiting list integration of seated events (#3323)

This commit is contained in:
Raphael Michel
2023-05-16 18:07:00 +02:00
committed by GitHub
parent 1d1f68945f
commit 90ee435f55
2 changed files with 17 additions and 2 deletions

View File

@@ -894,7 +894,7 @@ Vue.component('pretix-widget-event-form', {
+ strings['seating_plan_waiting_list']
+ '</div>'
+ '<div class="pretix-widget-seating-waitinglist-button-wrap">'
+ '<button class="pretix-widget-seating-waitinglist-button" @click.prevent.stop="$root.startseating">'
+ '<button class="pretix-widget-seating-waitinglist-button" @click.prevent.stop="$root.startwaiting">'
+ strings['waiting_list']
+ '</button>'
+ '</div>'
@@ -1649,6 +1649,20 @@ var shared_root_methods = {
}
});
},
startwaiting: function () {
var redirect_url = this.$root.target_url + 'w/' + widget_id;
if (this.$root.subevent){
redirect_url += '/' + this.$root.subevent;
}
redirect_url += '/waitinglist/?iframe=1&locale=' + lang;
if (this.$root.useIframe) {
var iframe = this.$root.overlay.$children[0].$refs['frame-container'].children[0];
this.$root.overlay.frame_loading = true;
iframe.src = redirect_url;
} else {
window.open(redirect_url);
}
},
startseating: function () {
var redirect_url = this.$root.target_url + 'w/' + widget_id;
if (this.$root.subevent){