fix: properly handle recurring events in EventUpdateModal

- Fix handling of solo vs. all event updates for recurring events
- Add calendar refresh for update all events
- Disable repeat option when editing a single occurrence (solo mode)
- Fix event recurrence editing in modals to match main branch
- Properly link EventDisplayPreview with EventUpdateModal for typeOfAction
This commit is contained in:
lenhanphung
2025-10-09 11:50:37 +07:00
committed by Benoit TELLIER
parent 9ff8354950
commit 474ff22cab
3 changed files with 47 additions and 18 deletions
+2 -1
View File
@@ -24,7 +24,7 @@ import {
import AvatarGroup from "@mui/material/AvatarGroup";
import { useEffect, useState } from "react";
import { useAppDispatch, useAppSelector } from "../../app/hooks";
import { deleteEventAsync, getEventAsync } from "../Calendars/CalendarSlice";
import { deleteEventAsync } from "../Calendars/CalendarSlice";
import { dlEvent } from "./EventApi";
import EventDisplayModal from "./EventDisplay";
import EventUpdateModal from "./EventUpdateModal";
@@ -512,6 +512,7 @@ export default function EventPreviewModal({
onClose={() => setOpenUpdateModal(false)}
eventId={eventId}
calId={calId}
typeOfAction={typeOfAction}
/>
</>
);