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 0a92cd083..631b558d0 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 @@ -57,13 +57,18 @@
-
- + 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 00d6a2273..c451f851e 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 @@ -39,6 +39,7 @@ export class BulkEditorComponent { tagSelectionModel = new FilterableDropdownSelectionModel() correspondentSelectionModel = new FilterableDropdownSelectionModel() documentTypeSelectionModel = new FilterableDropdownSelectionModel() + awaitingDownload: boolean constructor( private documentTypeService: DocumentTypeService, @@ -317,10 +318,12 @@ export class BulkEditorComponent { } downloadSelected(content = 'archive') { + this.awaitingDownload = true this.documentService .bulkDownload(Array.from(this.list.selected), content) .subscribe((result: any) => { saveAs(result, 'documents.zip') + this.awaitingDownload = false }) } }