sets the events to null before fetching the new events to reactivate the loading spinner

This commit is contained in:
SimonGschnell
2024-10-02 13:28:18 +02:00
parent 7f9352b820
commit e8f38bfcf6
+2
View File
@@ -42,6 +42,8 @@ const app = Vue.createApp({
let tmp_date = new CalendarDate(data.start);
// only load month data if the month or year has changed
if(tmp_date.m != this.calendarDate.m || tmp_date.y != this.calendarDate.y){
// reset the events before querying the new events to activate the loading spinner
this.events = null;
this.calendarDate = tmp_date;
Vue.nextTick(() => {
this.loadEvents();