diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 9b01100bc0..548037ed02 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -990,10 +990,10 @@ Vue.component('pretix-widget-event-form', { template: ('
' // Back navigation + '
' - + '‹ ' + + '‹ ' + strings['back_to_list'] + '' - + '‹ ' + + '‹ ' + strings['back_to_dates'] + '' + '
' @@ -1097,6 +1097,9 @@ Vue.component('pretix-widget-event-form', { this.$root.$off('focus_voucher_field', this.focus_voucher_field) }, computed: { + href: function () { + return this.$root.$weeks ? this.$root.event.event_url : this.$root.parent_stack[this.$root.parent_stack.length-1]; + }, display_event_info: function () { return this.$root.display_event_info || (this.$root.display_event_info === null && (this.$root.events || this.$root.weeks || this.$root.days)); }, @@ -1261,7 +1264,7 @@ Vue.component('pretix-widget-event-list-entry', { Vue.component('pretix-widget-event-list', { template: ('
' + '' @@ -1277,6 +1280,9 @@ Vue.component('pretix-widget-event-list', { display_event_info: function () { return this.$root.display_event_info || (this.$root.display_event_info === null && this.$root.parent_stack.length > 0); }, + href: function () { + return this.$root.$weeks ? this.$root.event.event_url : this.$root.parent_stack[this.$root.parent_stack.length-1]; + }, }, methods: { back_to_calendar: function () {