From d33206cba6bba2525b448a675c488dddcb13226e Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 3 Feb 2025 12:57:07 +0100 Subject: [PATCH] add dayhead as description for week calendar --- src/pretix/static/pretixpresale/js/widget/widget.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 170ee0fe6..22f8c218f 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -1332,7 +1332,7 @@ Vue.component('pretix-widget-event-list', { }); Vue.component('pretix-widget-event-calendar-event', { - template: ('' + template: ('' + '' + '{{ event.name }}' + '' @@ -1340,7 +1340,8 @@ Vue.component('pretix-widget-event-calendar-event', { + '
{{ event.availability.text }}
' + '
'), props: { - event: Object + event: Object, + describedby: String, }, computed: { href: function () { @@ -1371,11 +1372,11 @@ Vue.component('pretix-widget-event-calendar-event', { Vue.component('pretix-widget-event-week-cell', { template: ('
' - + '
' + + '
' + '{{ dayhead }}' + '
' + '
' - + '' + + '' + '
' + '
'), props: { @@ -1401,6 +1402,9 @@ Vue.component('pretix-widget-event-week-cell', { } }, computed: { + id: function () { + return this.day ? this.$root.html_id + '-' + this.day.date : ''; + }, dayhead: function () { if (!this.day) { return;