From 2994f3a740ce6a9294cd16a931e06c8abdb2d349 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:07:52 -0700 Subject: [PATCH] Fix: only show colon on cards if correspondent and title shown (#7893) --- src-ui/messages.xlf | 39 ++++++++++--------- .../document-card-large.component.html | 2 +- .../document-card-small.component.html | 3 +- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index fec67428f..fa644ca36 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -2426,7 +2426,7 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 128 + 129 src/app/components/manage/custom-fields/custom-fields.component.html @@ -2988,7 +2988,7 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 139 + 140 @@ -4162,16 +4162,12 @@ 32 - - Search for documents + + Search for a document src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html 38 - - src/app/components/common/input/document-link/document-link.component.ts - 53 - No documents found @@ -4873,6 +4869,13 @@ 14 + + Search for documents + + src/app/components/common/input/document-link/document-link.component.ts + 53 + + Selected items @@ -6845,11 +6848,11 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 65,66 + 66,67 src/app/components/document-list/document-card-small/document-card-small.component.html - 80,81 + 81,82 @@ -6860,11 +6863,11 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 66,67 + 67,68 src/app/components/document-list/document-card-small/document-card-small.component.html - 81,82 + 82,83 @@ -6875,11 +6878,11 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 67,68 + 68,69 src/app/components/document-list/document-card-small/document-card-small.component.html - 82,83 + 83,84 @@ -6890,7 +6893,7 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 95 + 96 @@ -6901,7 +6904,7 @@ src/app/components/document-list/document-card-small/document-card-small.component.html - 114 + 115 src/app/data/document.ts @@ -6937,14 +6940,14 @@ Toggle document type filter src/app/components/document-list/document-card-small/document-card-small.component.html - 48 + 49 Toggle storage path filter src/app/components/document-list/document-card-small/document-card-small.component.html - 55 + 56 diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html index f60056c42..41de0e49d 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html @@ -21,7 +21,7 @@ } @else { {{(document.correspondent$ | async)?.name}} } - : + @if (displayFields.includes(DisplayField.TITLE)) {:} } @if (displayFields.includes(DisplayField.TITLE)) { {{document.title | documentTitle}} diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 26f71ee8b..7a52f3a1d 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -35,7 +35,8 @@

@if (displayFields.includes(DisplayField.CORRESPONDENT) && document.correspondent) { - {{(document.correspondent$ | async)?.name ?? privateName}}: + {{(document.correspondent$ | async)?.name ?? privateName}} + @if (displayFields.includes(DisplayField.TITLE)) {:} } @if (displayFields.includes(DisplayField.TITLE)) { {{document.title | documentTitle}}