diff --git a/src-ui/src/app/services/rest/document.service.ts b/src-ui/src/app/services/rest/document.service.ts index 9caaecdb2..c42510270 100644 --- a/src-ui/src/app/services/rest/document.service.ts +++ b/src-ui/src/app/services/rest/document.service.ts @@ -28,9 +28,9 @@ export interface SelectionDataItem { } export interface SelectionData { - correspondents: SelectionDataItem[] - tags: SelectionDataItem[] - document_types: SelectionDataItem[] + selected_correspondents: SelectionDataItem[] + selected_tags: SelectionDataItem[] + selected_document_types: SelectionDataItem[] } @Injectable({ @@ -125,8 +125,7 @@ export class DocumentService extends AbstractPaperlessService }) } - selectionData(ids: number[]): Observable { - console.log(ids) + getSelectionData(ids: number[]): Observable { return this.http.post(this.getResourceUrl(null, 'selection_data'), {"documents": ids}) } diff --git a/src/documents/views.py b/src/documents/views.py index a50896057..ddf02f534 100755 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -420,7 +420,7 @@ class SelectionDataView(APIView): "id": t.id, "document_count": t.document_count } for t in tags], - "selected_types": [{ + "selected_document_types": [{ "id": t.id, "document_count": t.document_count } for t in types]