forked from CGM_Public/pretix_original
Widget: Fix issue navigating back to month calendar
This commit is contained in:
@@ -820,9 +820,9 @@ Vue.component('pretix-widget-event-form', {
|
|||||||
this.$root.error = null;
|
this.$root.error = null;
|
||||||
this.$root.subevent = null;
|
this.$root.subevent = null;
|
||||||
this.$root.trigger_load_callback();
|
this.$root.trigger_load_callback();
|
||||||
if (this.$root.events !== undefined) {
|
if (this.$root.events !== undefined && this.$root.events !== null) {
|
||||||
this.$root.view = "events";
|
this.$root.view = "events";
|
||||||
} else if (this.$root.days !== undefined) {
|
} else if (this.$root.days !== undefined && this.$root.days !== null) {
|
||||||
this.$root.view = "days";
|
this.$root.view = "days";
|
||||||
} else {
|
} else {
|
||||||
this.$root.view = "weeks";
|
this.$root.view = "weeks";
|
||||||
|
|||||||
Reference in New Issue
Block a user