From 77b2e15ea62bcec687e003283757dabe718db998 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Wed, 4 Nov 2020 18:23:20 +0100 Subject: [PATCH] fixed filter not showing all tags/correspondents/types --- .../components/document-detail/document-detail.component.ts | 4 ++-- .../app/components/filter-editor/filter-editor.component.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 571192b04..ad9a3ac07 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -60,8 +60,8 @@ export class DocumentDetailComponent implements OnInit { Object.assign(this.document, this.documentForm.value) }) - this.correspondentService.list(1,100000).subscribe(result => this.correspondents = result.results) - this.documentTypeService.list(1,100000).subscribe(result => this.documentTypes = result.results) + this.correspondentService.listAll().subscribe(result => this.correspondents = result.results) + this.documentTypeService.listAll().subscribe(result => this.documentTypes = result.results) this.route.paramMap.subscribe(paramMap => { this.documentId = +paramMap.get('id') diff --git a/src-ui/src/app/components/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/filter-editor/filter-editor.component.ts index 8c47ceafb..dc23450c5 100644 --- a/src-ui/src/app/components/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/filter-editor/filter-editor.component.ts @@ -52,9 +52,9 @@ export class FilterEditorComponent implements OnInit { } ngOnInit(): void { - this.correspondentService.list().subscribe(result => {this.correspondents = result.results}) - this.tagService.list().subscribe(result => this.tags = result.results) - this.documentTypeService.list().subscribe(result => this.documentTypes = result.results) + this.correspondentService.listAll().subscribe(result => {this.correspondents = result.results}) + this.tagService.listAll().subscribe(result => this.tags = result.results) + this.documentTypeService.listAll().subscribe(result => this.documentTypes = result.results) } getRuleTypes() {