feat(briefwechsel): thumbnail rows with summary quote and bilateral distribution bar (#305) #311
@@ -27,7 +27,7 @@ let {
|
|||||||
doc,
|
doc,
|
||||||
isOut,
|
isOut,
|
||||||
showOtherParty,
|
showOtherParty,
|
||||||
now
|
now = new Date()
|
||||||
}: {
|
}: {
|
||||||
doc: Doc;
|
doc: Doc;
|
||||||
isOut: boolean;
|
isOut: boolean;
|
||||||
@@ -46,9 +46,7 @@ const otherPartyName = $derived(
|
|||||||
: ''
|
: ''
|
||||||
);
|
);
|
||||||
const relativeYearLabel = $derived(
|
const relativeYearLabel = $derived(
|
||||||
doc.documentDate
|
doc.documentDate ? relativeYearsDe(new Date(doc.documentDate + 'T12:00:00'), now) : ''
|
||||||
? relativeYearsDe(new Date(doc.documentDate + 'T12:00:00'), now ?? new Date())
|
|
||||||
: ''
|
|
||||||
);
|
);
|
||||||
const directionLabel = $derived(isOut ? 'Gesendet' : 'Empfangen');
|
const directionLabel = $derived(isOut ? 'Gesendet' : 'Empfangen');
|
||||||
const ariaLabel = $derived(
|
const ariaLabel = $derived(
|
||||||
|
|||||||
Reference in New Issue
Block a user