add endpoint to get sharedCalendar

This commit is contained in:
Peter Maquiran
2024-06-06 10:26:34 +01:00
parent b041ae73f5
commit 74a365b3cf
9 changed files with 169 additions and 38 deletions
+11 -2
View File
@@ -185,9 +185,19 @@ export class AgendaPage implements OnInit {
public ThemeService: ThemeService,
public p: PermissionService,
public RoleIdService: RoleIdService,
public AgendaDataRepositoryService: AgendaDataRepositoryService
public AgendaDataRepositoryService: AgendaDataRepositoryService,
) {
(async () => {
const result = await this.AgendaDataRepositoryService.getSharedCalendar()
if(result.isOk()) {
console.log('111', result)
} else {
console.log('error')
}
})()
this.dateAdapter.setLocale('es');
this.locale = 'pt'
@@ -779,7 +789,6 @@ export class AgendaPage implements OnInit {
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 })
this.TimelineMDList = year