Phase 11: Per-Event Reminders (CAL-13/14, NOTIF-04/05/06) #19
@@ -1029,11 +1029,14 @@ export function EventForm() {
|
||||
)}
|
||||
</select>
|
||||
{/* Helper text: shown in edit mode when value is __custom__ or synthetic off-list (D-07) */}
|
||||
{/* WR-03: gate on the ACTIVE preset set only — not both — so a timed event with a
|
||||
value that happens to be in the allDay set still shows the off-list helper text */}
|
||||
{eventFormMode === 'edit' &&
|
||||
(reminderValue === '__custom__' ||
|
||||
(reminderValue !== '__none__' &&
|
||||
!TIMED_REMINDER_PRESETS.has(parseInt(reminderValue, 10)) &&
|
||||
!ALLDAY_REMINDER_PRESETS.has(parseInt(reminderValue, 10)) &&
|
||||
!(allDay ? ALLDAY_REMINDER_PRESETS : TIMED_REMINDER_PRESETS).has(
|
||||
parseInt(reminderValue, 10),
|
||||
) &&
|
||||
Number.isFinite(parseInt(reminderValue, 10)))) && (
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user