Skip to content
Snippets Groups Projects
Commit e7de2770 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Reset selected event after refresh

parent 238c805a
1 merge request!1318Resolve "Calendar event detail view is not properly updated on refresh"
Pipeline #147467 failed
......@@ -376,6 +376,9 @@ export default {
this.fetchMoreInterval = setInterval(() => {
this.fetchMoreCalendarEvents(this.extendedStart, this.extendedEnd);
}, 30000);
// Also reset the currently selected event (for the detail view)
this.selectedEvent = null;
},
fetch() {
this.title = this.$refs.calendar.title;
......@@ -404,6 +407,9 @@ export default {
this.fetchMoreInterval = setInterval(() => {
this.fetchMoreCalendarEvents(this.extendedStart, this.extendedEnd);
}, 30000);
// Also reset the currently selected event (for the detail view)
this.selectedEvent = null;
}
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment