mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +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);
|
let tmp_date = new CalendarDate(data.start);
|
||||||
// only load month data if the month or year has changed
|
// only load month data if the month or year has changed
|
||||||
if(tmp_date.m != this.calendarDate.m || tmp_date.y != this.calendarDate.y){
|
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;
|
this.calendarDate = tmp_date;
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
this.loadEvents();
|
this.loadEvents();
|
||||||
|
|||||||
Reference in New Issue
Block a user