feat: Aufgaben einzeln zum Spiegeln freigeben

Der Schalter erscheint nur, wo auch gespiegelt wird.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Florian Wilde
2026-09-11 23:58:46 +02:00
co-authored by Claude Opus 5
parent 4da2f3d9c6
commit 3befcc19a3
4 changed files with 10 additions and 0 deletions
+4
View File
@@ -26,6 +26,7 @@ export type AufgabeRoh = {
faelligAm: Date | null
quelle: Quelle
quelleUrl: string | null
spiegeln: boolean
bereich: { id: string; name: string; farbe: string } | null
projekt: { id: string; name: string } | null
}
@@ -48,6 +49,8 @@ export type AufgabeAnzeige = {
ueberfaellig: boolean
quelle: Quelle
quelleUrl: string | null
/** Ausdruecklich zum Spiegeln freigegeben. */
spiegeln: boolean
bereich: { id: string; name: string; farbe: string } | null
projekt: { id: string; name: string } | null
}
@@ -79,6 +82,7 @@ export function fuerAnzeige(aufgabe: AufgabeRoh, jetzt: Date): AufgabeAnzeige {
ueberfaellig: istUeberfaellig(aufgabe.faelligAm, aufgabe.status, jetzt),
quelle: aufgabe.quelle,
quelleUrl: aufgabe.quelleUrl,
spiegeln: aufgabe.spiegeln,
bereich: aufgabe.bereich,
projekt: aufgabe.projekt,
}