add month calendar sorting
This commit is contained in:
parent
7a55ca9ff3
commit
ad2be423d9
@ -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;
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user