Merged in release/2022-01-07 (pull request #338)

IO-1612 Disable popover on PTO

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-01-07 18:25:38 +00:00
3 changed files with 3 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ export function ScheduleEventComponent({
return (
<Popover
visible={visible}
onVisibleChange={(vis) => setVisible(vis)}
onVisibleChange={(vis) => !event.vacation && setVisible(vis)}
trigger="click"
content={event.block ? blockContent : popoverContent}
style={{ height: "100%", width: "100%" }}

View File

@@ -65,6 +65,7 @@ export function ScheduleCalendarContainer({ calculateScheduleLoad }) {
color: "red",
start: moment(e.start).startOf("day").toDate(),
end: moment(e.end).startOf("day").toDate(),
vacation: true,
};
}),
];

View File

@@ -45,6 +45,7 @@ export default function ScheduleDayViewContainer({ day }) {
color: "red",
start: moment(e.start).startOf("day").toDate(),
end: moment(e.end).startOf("day").toDate(),
vacation: true,
};
}),
];