Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Switch from MountCallback to ClassNamesCallback as the function only returns the class for non-working-day

Henriette Darge0e865b5e0ee1
diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
index 031830f19cf..6ef6db5b870 100644
--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
@@ -142,8 +142,8 @@ export class TimeEntryCalendarComponent {
eventWillUnmount: this.beforeEventRemove.bind(this),
eventClick: this.dispatchEventClick.bind(this),
eventDrop: this.moveEvent.bind(this),
- dayHeaderDidMount: (data:DayHeaderMountArg) => this.calendar.applyNonWorkingDay(data),
- dayCellDidMount: (data:DayCellMountArg) => this.calendar.applyNonWorkingDay(data),
+ dayHeaderClassNames: (data:DayHeaderMountArg) => this.calendar.applyNonWorkingDay(data),
+ dayCellClassNames: (data:DayCellMountArg) => this.calendar.applyNonWorkingDay(data),
};
constructor(