From ad2be423d9cd88b52c8ec15d2e23dfda943befa7 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 5 Oct 2021 07:02:46 +0200 Subject: [PATCH] add month calendar sorting --- .../app/components/month-calendar/month-calendar.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/customer/app/src/app/components/month-calendar/month-calendar.component.ts b/customer/app/src/app/components/month-calendar/month-calendar.component.ts index f9258ab..08e2d07 100644 --- a/customer/app/src/app/components/month-calendar/month-calendar.component.ts +++ b/customer/app/src/app/components/month-calendar/month-calendar.component.ts @@ -64,7 +64,6 @@ export class MonthCalendarComponent implements OnInit { this._timeTableFilter = timeTableFilter; let idTrainer = timeTableFilter?.idTrainer == null ? "-1" : timeTableFilter?.idTrainer; let idEventType = timeTableFilter?.idEventType == null ? "-1" : timeTableFilter?.idEventType; - console.info("run time table filter", timeTableFilter, idTrainer,idEventType); this.formTimeTable.patchValue({ "idTrainer": idTrainer, @@ -127,6 +126,9 @@ export class MonthCalendarComponent implements OnInit { const trainerMatch = this.filterValue(this.timeTableFilter?.idTrainer, () => value.trainer.id); const eventTypeMatch = this.filterValue(this.timeTableFilter?.idEventType, () => value.eventType.id); return trainerMatch && eventTypeMatch; + }); + day.events.sort((a: Event, b: Event) => { + return a.start - b.start; }) })