Implement double-click documents

This commit is contained in:
shamoon
2023-03-28 22:10:12 -07:00
parent d5ab1119d3
commit 95d32dc0da
6 changed files with 15 additions and 5 deletions

View File

@@ -258,6 +258,10 @@ export class DocumentListComponent
})
}
openDocumentDetail(document: PaperlessDocument) {
this.router.navigate(['documents', document.id])
}
toggleSelected(document: PaperlessDocument, event: MouseEvent): void {
if (!event.shiftKey) this.list.toggleSelected(document)
else this.list.selectRangeTo(document)