mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
refactor
This commit is contained in:
parent
cde867c9c6
commit
3e0c3c0bb2
@ -168,21 +168,21 @@ export class DocumentListComponent implements OnInit {
|
||||
clickTag(tagID: number) {
|
||||
this.list.selectNone()
|
||||
setTimeout(() => {
|
||||
this.filterEditor.toggleTag(tagID)
|
||||
this.filterEditor.addTag(tagID)
|
||||
})
|
||||
}
|
||||
|
||||
clickCorrespondent(correspondentID: number) {
|
||||
this.list.selectNone()
|
||||
setTimeout(() => {
|
||||
this.filterEditor.toggleCorrespondent(correspondentID)
|
||||
this.filterEditor.addCorrespondent(correspondentID)
|
||||
})
|
||||
}
|
||||
|
||||
clickDocumentType(documentTypeID: number) {
|
||||
this.list.selectNone()
|
||||
setTimeout(() => {
|
||||
this.filterEditor.toggleDocumentType(documentTypeID)
|
||||
this.filterEditor.addDocumentType(documentTypeID)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -203,15 +203,15 @@ export class FilterEditorComponent implements OnInit, OnDestroy {
|
||||
this.reset.next()
|
||||
}
|
||||
|
||||
toggleTag(tagId: number) {
|
||||
addTag(tagId: number) {
|
||||
this.tagSelectionModel.set(tagId, ToggleableItemState.Selected)
|
||||
}
|
||||
|
||||
toggleCorrespondent(correspondentId: number) {
|
||||
addCorrespondent(correspondentId: number) {
|
||||
this.correspondentSelectionModel.set(correspondentId, ToggleableItemState.Selected)
|
||||
}
|
||||
|
||||
toggleDocumentType(documentTypeId: number) {
|
||||
addDocumentType(documentTypeId: number) {
|
||||
this.documentTypeSelectionModel.set(documentTypeId, ToggleableItemState.Selected)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user