load calendars on open edit-event modal and new event modal.

This commit is contained in:
Peter Maquiran
2024-07-18 10:30:29 +01:00
parent 678a9ba614
commit 357e76bb16
3 changed files with 9 additions and 5 deletions
@@ -189,6 +189,8 @@ export class EditEventPage implements OnInit {
this.loadedEventAttachments = this.postEvent?.Attachments
this.agendaDataRepository.getSharedCalendar()
this.CalendarNameOwnerName = this.eventsService.detectCalendarNameByCalendarId(this.postEvent.CalendarId)
this.changeAgenda()
this.sharedCalendar = this.agendaDataRepository.getShareCalendarItemsLiveWithOrder()
@@ -153,6 +153,8 @@ export class NewEventPage implements OnInit {
// Add other roles with their priorities here
};
this.agendaDataRepository.getSharedCalendar()
this.sharedCalendar = this.agendaDataRepository.getShareCalendarItemsLive().pipe(
map(data => data.sort((a, b) => {
console.log('Raw data:', data); // Debug line