mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: edit a repeating event's series instead of moving its start to the clicked occurrence (#30971)
This commit is contained in:
parent
b857eb8267
commit
101cdb6f78
1 changed files with 5 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import {
|
||||
getCalendars,
|
||||
getCalendarEvents,
|
||||
getCalendarEventById,
|
||||
deleteCalendar,
|
||||
type CalendarModel,
|
||||
type CalendarEventModel
|
||||
|
|
@ -134,7 +135,7 @@
|
|||
showEventModal = true;
|
||||
}
|
||||
|
||||
function handleEventClick(e: CustomEvent<CalendarEventModel>) {
|
||||
async function handleEventClick(e: CustomEvent<CalendarEventModel>) {
|
||||
const evt = e.detail;
|
||||
if (evt.meta?.automation_id) {
|
||||
if (evt.meta?.chat_id) {
|
||||
|
|
@ -144,7 +145,9 @@
|
|||
}
|
||||
return;
|
||||
}
|
||||
editEvent = evt;
|
||||
editEvent = evt.instance_id
|
||||
? ((await getCalendarEventById(localStorage.token, evt.id)) ?? evt)
|
||||
: evt;
|
||||
defaultStartAt = null;
|
||||
showEventModal = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue