reoccurring event fix

This commit is contained in:
Matthias Hochmeister
2026-03-25 15:22:31 +01:00
parent 51d8777d66
commit e49639e2a6
2 changed files with 22 additions and 11 deletions

View File

@@ -928,16 +928,20 @@ function EventFormDialog({
fullWidth
/>
{/* Recurrence / Wiederholung — for new events or when editing a parent event */}
{(!editingEvent || (editingEvent.wiederholung && !editingEvent.wiederholung_parent_id)) && (
{/* Recurrence / Wiederholung — for new events, parent events, or child events */}
{(!editingEvent || editingEvent.wiederholung || editingEvent.wiederholung_parent_id) && (
<>
<Divider />
{editingEvent && (
{editingEvent?.wiederholung_parent_id ? (
<Typography variant="body2" color="text.secondary" sx={{ fontStyle: 'italic' }}>
Dieser Termin ist Teil einer Serienveranstaltung. Änderungen betreffen nur diesen Einzeltermin.
</Typography>
) : editingEvent?.wiederholung ? (
<Typography variant="caption" color="text.secondary">
Änderungen an der Wiederholung werden alle bestehenden Instanzen löschen und neu generieren.
</Typography>
)}
<FormControlLabel
) : null}
{!editingEvent?.wiederholung_parent_id && <FormControlLabel
control={
<Switch
checked={Boolean(form.wiederholung)}
@@ -957,8 +961,8 @@ function EventFormDialog({
/>
}
label="Wiederholung"
/>
{form.wiederholung && (
/>}
{!editingEvent?.wiederholung_parent_id && form.wiederholung && (
<Stack spacing={2} sx={{ pl: 2 }}>
<FormControl fullWidth size="small">
<InputLabel>Häufigkeit</InputLabel>