mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Convert selection functions on cards to toggling, let service handle setting selected
Also because we need to capture mouseevents
This commit is contained in:
parent
014859185c
commit
7cc3c73994
7 changed files with 18 additions and 21 deletions
|
|
@ -255,6 +255,9 @@ export class DocumentListViewService {
|
|||
} else if (!value) {
|
||||
this.selected.delete(d.id)
|
||||
}
|
||||
toggleSelected(d: PaperlessDocument): void {
|
||||
if (this.selected.has(d.id)) this.selected.delete(d.id)
|
||||
else this.selected.add(d.id)
|
||||
}
|
||||
|
||||
constructor(private documentService: DocumentService, private settings: SettingsService, private router: Router) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue