A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix display of private items in small cards
shamoone329f6cdf1f0
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 9d05ee9ab..b52c8e702 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -2106,6 +2106,10 @@<context context-type="sourcefile">src/app/components/common/tag/tag.component.html</context><context context-type="linenumber">8</context></context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/document-card-small/document-card-small.component.ts</context>+ <context context-type="linenumber">80</context>+ </context-group></trans-unit><trans-unit id="6560126119609945418" datatype="html"><source>Add tag</source>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.htmlindex 3f23d99f9..a4024d70d 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@@ -29,7 +29,7 @@<div class="card-body bg-light p-2"><p class="card-text"><ng-container *ngIf="document.correspondent">- <a title="Toggle correspondent filter" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a>:+ <a title="Toggle correspondent filter" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name ?? privateName}}</a>:</ng-container>{{document.title | documentTitle}}</p>@@ -41,14 +41,14 @@<svg class="metadata-icon me-2 text-muted" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#file-earmark"/></svg>- <small>{{(document.document_type$ | async)?.name}}</small>+ <small>{{(document.document_type$ | async)?.name ?? privateName}}</small></button><button *ngIf="document.storage_path" type="button" class="list-group-item list-group-item-action bg-transparent ps-0 p-1 border-0" title="Toggle storage path filter" i18n-title(click)="clickStoragePath.emit(document.storage_path);$event.stopPropagation()"><svg class="metadata-icon me-2 text-muted" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#folder"/></svg>- <small>{{(document.storage_path$ | async)?.name}}</small>+ <small>{{(document.storage_path$ | async)?.name ?? privateName}}</small></button><div class="list-group-item bg-transparent p-0 border-0 d-flex flex-wrap-reverse justify-content-between"><ng-template #dateTooltip>diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.tsindex 62f44851e..3dd64818d 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts@@ -76,6 +76,10 @@ export class DocumentCardSmallComponent extends ComponentWithPermissions {return this.documentService.getPreviewUrl(this.document.id)}+ get privateName() {+ return $localize`Private`+ }+getTagsLimited$() {const limit = this.document.notes.length > 0 ? 6 : 7return this.document.tags$.pipe(