Convert selection functions on cards to toggling, let service handle setting selected

Also because we need to capture mouseevents
This commit is contained in:
Michael Shamoon 2021-01-14 10:56:30 -08:00
parent 014859185c
commit 7cc3c73994
7 changed files with 18 additions and 21 deletions

View file

@ -160,6 +160,10 @@ export class DocumentListComponent implements OnInit {
this.filterRulesModified = modified
}
toggleSelected(document: PaperlessDocument, event: Event): void {
this.list.toggleSelected(document)
}
clickTag(tagID: number) {
this.list.selectNone()
setTimeout(() => {