From f42e5bf1e5324dec65a21ed0cf7fd9acd76aaff9 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Tue, 22 Dec 2020 02:59:09 +0100 Subject: [PATCH] added tracking to the document list --- .../components/document-list/document-list.component.html | 6 +++--- .../app/components/document-list/document-list.component.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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.html index 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 @@
- +
@@ -87,7 +87,7 @@ Added - + {{d.archive_serial_number}} @@ -117,5 +117,5 @@
- +
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.ts index 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 + } }