You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
491 B
15 lines
491 B
/** @odoo-module */
|
|
import { patch } from "@web/core/utils/patch";
|
|
import { TimeOffCalendarYearRenderer } from "@hr_holidays/views/calendar/year/calendar_year_renderer";
|
|
import { usePublicHolidays } from "@hr_leave_dashboard/js/hooks";
|
|
|
|
patch(TimeOffCalendarYearRenderer.prototype, {
|
|
setup() {
|
|
super.setup();
|
|
this.publicHolidays = usePublicHolidays(this.props);
|
|
},
|
|
onDayRender(info) {
|
|
super.onDayRender(info);
|
|
this.publicHolidays(info);
|
|
}
|
|
});
|
|
|