diff --git a/frontend/src/client/fristenrechner.ts b/frontend/src/client/fristenrechner.ts index ec204ec..54bf484 100644 --- a/frontend/src/client/fristenrechner.ts +++ b/frontend/src/client/fristenrechner.ts @@ -37,6 +37,11 @@ interface CalculatedDeadline { adjustmentReason?: AdjustmentReason; isRootEvent: boolean; isCourtSet: boolean; + // True when isCourtSet is "unbestimmt" — the rule chains off a + // court-determined parent (e.g. RoP.151 = 1 Monat ab + // Hauptentscheidung) rather than being itself court-set. The UI + // renders "unbestimmt" instead of "wird vom Gericht bestimmt". + isCourtSetIndirect?: boolean; isOverridden?: boolean; } @@ -377,8 +382,12 @@ async function openSaveModal() { const isCourtDetermined = dl.isCourtSet || dl.party === "court"; const disabled = isCourtDetermined || !dl.dueDate; const checked = !disabled; + // Same direct-vs-indirect split as the timeline date cell — + // chained court-set rules read as "unbestimmt" rather than + // "wird vom Gericht bestimmt". + const courtLabelKey = dl.isCourtSetIndirect ? "deadlines.court.indirect" : "deadlines.court.set"; const meta = isCourtDetermined - ? `${escHtml(t("deadlines.court.set"))}` + ? `${escHtml(t(courtLabelKey))}` : `${escHtml(formatDate(dl.dueDate))}`; return `