Bulk download now choses file extension between .zip and .pdf

This commit is contained in:
Łukasz Czyż 2023-12-13 16:39:18 +01:00
parent 8bd40e2c3e
commit e52c7e83f3

View File

@ -518,7 +518,12 @@ export class BulkEditorComponent
)
.pipe(first())
.subscribe((result: any) => {
saveAs(result, 'documents.zip')
saveAs(
result,
this.downloadForm.get('downloadAsSingleFile').value
? 'documents.pdf'
: 'documents.zip'
)
this.awaitingDownload = false
})
}