Merged in release/2022-01-07 (pull request #338)
IO-1612 Disable popover on PTO Approved-by: Patrick Fic
This commit is contained in:
@@ -287,7 +287,7 @@ export function ScheduleEventComponent({
|
|||||||
return (
|
return (
|
||||||
<Popover
|
<Popover
|
||||||
visible={visible}
|
visible={visible}
|
||||||
onVisibleChange={(vis) => setVisible(vis)}
|
onVisibleChange={(vis) => !event.vacation && setVisible(vis)}
|
||||||
trigger="click"
|
trigger="click"
|
||||||
content={event.block ? blockContent : popoverContent}
|
content={event.block ? blockContent : popoverContent}
|
||||||
style={{ height: "100%", width: "100%" }}
|
style={{ height: "100%", width: "100%" }}
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export function ScheduleCalendarContainer({ calculateScheduleLoad }) {
|
|||||||
color: "red",
|
color: "red",
|
||||||
start: moment(e.start).startOf("day").toDate(),
|
start: moment(e.start).startOf("day").toDate(),
|
||||||
end: moment(e.end).startOf("day").toDate(),
|
end: moment(e.end).startOf("day").toDate(),
|
||||||
|
vacation: true,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export default function ScheduleDayViewContainer({ day }) {
|
|||||||
color: "red",
|
color: "red",
|
||||||
start: moment(e.start).startOf("day").toDate(),
|
start: moment(e.start).startOf("day").toDate(),
|
||||||
end: moment(e.end).startOf("day").toDate(),
|
end: moment(e.end).startOf("day").toDate(),
|
||||||
|
vacation: true,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user