Merge branch 'feature/agenda-new-api-peter' into feature/agenda-new-api-eudes

This commit is contained in:
Peter Maquiran
2024-06-04 11:12:38 +01:00
3 changed files with 17 additions and 21 deletions
+5 -2
View File
@@ -245,10 +245,13 @@ export class AgendaPage implements OnInit {
this.weekToShow()
this.eventService.registerOnLoadCalendars(()=> {
this.setCalendarByDefault(true)
const selectedCalendarIds = this.getSelectedAgendaCalendars();
this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds)
this.reloadCalendar()
this.tigerUpdate()
})
}
@@ -773,8 +776,8 @@ export class AgendaPage implements OnInit {
updateEventListBox() {
const selectedCalendarIds = this.getSelectedAgendaCalendars();
this.listToPresent = this.removeDuplicatesByOwnerUserId(this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds))
const selectedCalendarIds = this.removeDuplicatesByOwnerUserId(this.getSelectedAgendaCalendars());
this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds)
console.log('this.listToPresent', JSON.stringify(this.listToPresent) )
const year = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })