debugging

This commit is contained in:
Peter Maquiran
2023-02-23 18:05:15 +01:00
parent 6e87ecd7ed
commit a034747db0
5 changed files with 21 additions and 18 deletions
@@ -42,17 +42,18 @@ export class EventListPage implements OnInit {
public eventService: EventsService,
) {
this.loggeduser = SessionStore.user;
if(!this.segment) {
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
this.segment = 'Meu calendario';
} else {
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
}
}
}
ngOnInit() {
if(!this.segment) {
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
this.segment = 'Meu calendario';
} else {
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
}
}
const pathname = window.location.pathname
this.router.events.forEach((event) => {
@@ -103,7 +104,7 @@ export class EventListPage implements OnInit {
this.color = 'pr'
let allEvents = await this.processes.eventsToApprove(segment).toPromise()
let allEvents = await this.processes.eventsToApprove(segment,'agenda desktop').toPromise()
try {
this.eventsList = this.sortService.sortArrayByDate(allEvents).reverse();
} catch(error) {