[#197] added missing infos

This commit is contained in:
Camille Moussu
2025-10-16 11:48:50 +02:00
committed by Benoit TELLIER
parent ed8bb41ca9
commit 6411ed636b
6 changed files with 259 additions and 121 deletions
@@ -5,6 +5,7 @@ import { Calendars } from "../../../features/Calendars/CalendarTypes";
import { getDeltaInMilliseconds } from "../../../utils/dateUtils";
import {
getCalendarDetailAsync,
getEventAsync,
putEventAsync,
updateEventInstanceAsync,
updateEventLocal,
@@ -97,6 +98,21 @@ export const createEventHandlers = (props: EventHandlersProps) => {
window.open(info.event.url);
} else {
setOpenEventDisplay(true);
if (
calendars[info.event.extendedProps.calId] &&
calendars[info.event.extendedProps.calId].events[
info.event.extendedProps.uid
]
) {
dispatch(
getEventAsync(
calendars[info.event.extendedProps.calId].events[
info.event.extendedProps.uid
]
)
);
}
setEventDisplayedId(info.event.extendedProps.uid);
setEventDisplayedCalId(info.event.extendedProps.calId);
setEventDisplayedTemp(info.event._def.extendedProps.temp);