Merge pull request #1122 from paperless-ngx/feature-quick-toggleable-filters

Feature / fix quick toggleable filters
This commit is contained in:
shamoon
2022-07-02 08:26:42 -07:00
committed by GitHub
4 changed files with 61 additions and 58 deletions

View File

@@ -229,22 +229,22 @@ export class DocumentListComponent implements OnInit, OnDestroy {
clickTag(tagID: number) {
this.list.selectNone()
this.filterEditor.addTag(tagID)
this.filterEditor.toggleTag(tagID)
}
clickCorrespondent(correspondentID: number) {
this.list.selectNone()
this.filterEditor.addCorrespondent(correspondentID)
this.filterEditor.toggleCorrespondent(correspondentID)
}
clickDocumentType(documentTypeID: number) {
this.list.selectNone()
this.filterEditor.addDocumentType(documentTypeID)
this.filterEditor.toggleDocumentType(documentTypeID)
}
clickStoragePath(storagePathID: number) {
this.list.selectNone()
this.filterEditor.addStoragePath(storagePathID)
this.filterEditor.toggleStoragePath(storagePathID)
}
clickMoreLike(documentID: number) {