This commit is contained in:
Michael Shamoon 2021-01-20 19:44:50 -08:00
parent cde867c9c6
commit 3e0c3c0bb2
2 changed files with 6 additions and 6 deletions

View File

@ -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)
})
}

View File

@ -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)
}