A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Handle shift-clicking orignal item
Michael Shamoon8d606b9f34ab
diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.tsindex 1ebf86d12..c7ddbd44e 100644--- a/src-ui/src/app/services/document-list-view.service.ts+++ b/src-ui/src/app/services/document-list-view.service.ts@@ -267,9 +267,8 @@ export class DocumentListViewService {const toIndex = Math.max(this.lastSelectedDocumentIndex, documentToIndex)if (this.lastSelectedDocumentToIndex !== null &&- ((this.lastSelectedDocumentToIndex > this.lastSelectedDocumentIndex && documentToIndex < this.lastSelectedDocumentIndex) ||- (this.lastSelectedDocumentToIndex < this.lastSelectedDocumentIndex && documentToIndex > this.lastSelectedDocumentIndex))) {- console.log('invert');+ ((this.lastSelectedDocumentToIndex > this.lastSelectedDocumentIndex && documentToIndex <= this.lastSelectedDocumentIndex) ||+ (this.lastSelectedDocumentToIndex < this.lastSelectedDocumentIndex && documentToIndex >= this.lastSelectedDocumentIndex))) {// new click is "opposite side" of anchor so we invert the old selectionthis.documents.slice(Math.min(this.lastSelectedDocumentIndex, this.lastSelectedDocumentToIndex), Math.max(this.lastSelectedDocumentIndex, this.lastSelectedDocumentToIndex) + 1).forEach(d => {@@ -282,7 +281,7 @@ export class DocumentListViewService {})this.lastSelectedDocumentToIndex = documentToIndex} else { // e.g. shift key but was first click- this.lastSelectedDocumentIndex = this.documentIndexInCurrentView(d.id)+ this.toggleSelected(d)}}