From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 3 Apr 2022 05:20:24 +0000 (-0700) Subject: disable download buttons while awaiting zip X-Git-Tag: beta-1.7.0-rc1~24^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F630%2Fhead;p=thirdparty%2Fpaperless-ngx.git disable download buttons while awaiting zip --- 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 0a92cd083a..631b558d0b 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 00d6a2273f..c451f851e6 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 }) } }