diff --git a/src-ui/src/app/components/common/input/tags/tags.component.ts b/src-ui/src/app/components/common/input/tags/tags.component.ts index 7b5a36e90..dd57d8e50 100644 --- a/src-ui/src/app/components/common/input/tags/tags.component.ts +++ b/src-ui/src/app/components/common/input/tags/tags.component.ts @@ -86,7 +86,7 @@ export class TagsComponent implements OnInit, ControlValueAccessor { var modal = this.modalService.open(TagEditDialogComponent, {backdrop: 'static'}) modal.componentInstance.dialogMode = 'create' modal.componentInstance.success.subscribe(newTag => { - this.tagService.list().subscribe(tags => { + this.tagService.listAll().subscribe(tags => { this.tags = tags.results this.addTag(newTag.id) }) 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 802a3b212..634b28613 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 @@ -89,7 +89,7 @@ export class DocumentDetailComponent implements OnInit { var modal = this.modalService.open(DocumentTypeEditDialogComponent, {backdrop: 'static'}) modal.componentInstance.dialogMode = 'create' modal.componentInstance.success.subscribe(newDocumentType => { - this.documentTypeService.list().subscribe(documentTypes => { + this.documentTypeService.listAll().subscribe(documentTypes => { this.documentTypes = documentTypes.results this.documentForm.get('document_type_id').setValue(newDocumentType.id) }) @@ -100,7 +100,7 @@ export class DocumentDetailComponent implements OnInit { var modal = this.modalService.open(CorrespondentEditDialogComponent, {backdrop: 'static'}) modal.componentInstance.dialogMode = 'create' modal.componentInstance.success.subscribe(newCorrespondent => { - this.correspondentService.list().subscribe(correspondents => { + this.correspondentService.listAll().subscribe(correspondents => { this.correspondents = correspondents.results this.documentForm.get('correspondent_id').setValue(newCorrespondent.id) })