mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
sets the events to null before fetching the new events to reactivate the loading spinner
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user