A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
added tracking to the document list
jonaswinklerf42e5bf1e532
diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.htmlindex 9657f35e3..7c7541b4d 100644--- a/src-ui/src/app/components/document-list/document-list.component.html+++ b/src-ui/src/app/components/document-list/document-list.component.html@@ -73,7 +73,7 @@</div><div *ngIf="displayMode == 'largeCards'">- <app-document-card-large *ngFor="let d of list.documents" [document]="d" [details]="d.content" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)">+ <app-document-card-large *ngFor="let d of list.documents; trackBy: trackByDocumentId" [document]="d" [details]="d.content" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-large></div>@@ -87,7 +87,7 @@<th class="d-none d-xl-table-cell">Added</th></thead><tbody>- <tr *ngFor="let d of list.documents">+ <tr *ngFor="let d of list.documents; trackBy: trackByDocumentId"><td class="d-none d-lg-table-cell">{{d.archive_serial_number}}</td>@@ -117,5 +117,5 @@<div class="m-n2 row row-cols-paperless-cards" *ngIf="displayMode == 'smallCards'">- <app-document-card-small [document]="d" *ngFor="let d of list.documents" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-small>+ <app-document-card-small [document]="d" *ngFor="let d of list.documents; trackBy: trackByDocumentId" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-small></div>diff --git a/src-ui/src/app/components/document-list/document-list.component.ts b/src-ui/src/app/components/document-list/document-list.component.tsindex 25d92e9db..2d5257804 100644--- a/src-ui/src/app/components/document-list/document-list.component.ts+++ b/src-ui/src/app/components/document-list/document-list.component.ts@@ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';import { ActivatedRoute, Router } from '@angular/router';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { FILTER_CORRESPONDENT } from 'src/app/data/filter-rule-type';+import { PaperlessDocument } from 'src/app/data/paperless-document';import { PaperlessSavedView } from 'src/app/data/paperless-saved-view';import { DocumentListViewService } from 'src/app/services/document-list-view.service';import { DOCUMENT_SORT_FIELDS } from 'src/app/services/rest/document.service';@@ -113,4 +114,7 @@ export class DocumentListComponent implements OnInit {this.filterEditor.toggleDocumentType(documentTypeID)}+ trackByDocumentId(index, item: PaperlessDocument) {+ return item.id+ }}