From e8f38bfcf6aee5fb268eaee22d11d8e7e2ffa293 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 2 Oct 2024 13:28:18 +0200 Subject: [PATCH] sets the events to null before fetching the new events to reactivate the loading spinner --- public/js/apps/Cis/Stundenplan.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index ae36c0d6c..807f192d7 100755 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -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();