diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html index b3d107e8a..48fe74ad7 100644 --- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html +++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html @@ -25,7 +25,7 @@
- +
diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html index e7bdc8d75..a69a23cfd 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html @@ -34,6 +34,7 @@ [applyOnClose]="applyOnClose" (opened)="openTagsDropdown()" [(selectionModel)]="tagSelectionModel" + [documentCounts]="tagDocumentCounts" (apply)="setTags($event)"> diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts index 27b7a28f0..bb9575c9c 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts @@ -49,6 +49,10 @@ export class BulkEditorComponent correspondentSelectionModel = new FilterableDropdownSelectionModel() documentTypeSelectionModel = new FilterableDropdownSelectionModel() storagePathsSelectionModel = new FilterableDropdownSelectionModel() + tagDocumentCounts: SelectionDataItem[] + correspondentDocumentCounts: SelectionDataItem[] + documentTypeDocumentCounts: SelectionDataItem[] + storagePathDocumentCounts: SelectionDataItem[] awaitingDownload: boolean unsubscribeNotifier: Subject = new Subject() @@ -197,6 +201,7 @@ export class BulkEditorComponent .getSelectionData(Array.from(this.list.selected)) .pipe(first()) .subscribe((s) => { + this.tagDocumentCounts = s.selected_tags this.applySelectionData(s.selected_tags, this.tagSelectionModel) }) } @@ -206,6 +211,7 @@ export class BulkEditorComponent .getSelectionData(Array.from(this.list.selected)) .pipe(first()) .subscribe((s) => { + this.documentTypeDocumentCounts = s.selected_document_types this.applySelectionData( s.selected_document_types, this.documentTypeSelectionModel @@ -218,6 +224,7 @@ export class BulkEditorComponent .getSelectionData(Array.from(this.list.selected)) .pipe(first()) .subscribe((s) => { + this.correspondentDocumentCounts = s.selected_correspondents this.applySelectionData( s.selected_correspondents, this.correspondentSelectionModel @@ -230,6 +237,7 @@ export class BulkEditorComponent .getSelectionData(Array.from(this.list.selected)) .pipe(first()) .subscribe((s) => { + this.storagePathDocumentCounts = s.selected_storage_paths this.applySelectionData( s.selected_storage_paths, this.storagePathsSelectionModel