fix agenda

This commit is contained in:
Peter Maquiran
2023-03-30 15:22:40 +01:00
parent b7d878851e
commit 936878f6cd
6 changed files with 46 additions and 29 deletions
+4 -3
View File
@@ -27,6 +27,7 @@ export class ListBoxService {
}
filterSegment(eventSource: EventListStore[], segment): EventListStore[] {
return eventSource.filter( data => data.calendarName == segment)
}
@@ -43,9 +44,9 @@ export class ListBoxService {
// }
// if(segment!='Combinado') {
// eventSource = this.filterSegment(eventSource, segment)
// }
if(segment!='Combinado') {
eventSource = this.filterSegment(eventSource, segment)
}
// if(profile != 'all') {
// eventSource = this.filterProfile(eventSource, profile)
+1 -1
View File
@@ -528,7 +528,7 @@ export class EventsService {
}
async getEventsByCalendarId( startdate: string, enddate: string, calendarId: string) {
async getEventsByCalendarId( startdate: string, enddate: string, calendarId: any) {
const calendars = SessionStore.user.OwnerCalendars.concat(SessionStore.user.SharedCalendars)
const agendasCalendars = calendars.filter( e => e.CalendarId == calendarId)