Merge branch 'dev' into feature-permissions

This commit is contained in:
Michael Shamoon
2022-12-09 03:31:26 -08:00
10 changed files with 380 additions and 64 deletions

View File

@@ -174,10 +174,18 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
)
}
bulkDownload(ids: number[], content = 'both') {
bulkDownload(
ids: number[],
content = 'both',
useFilenameFormatting: boolean = false
) {
return this.http.post(
this.getResourceUrl(null, 'bulk_download'),
{ documents: ids, content: content },
{
documents: ids,
content: content,
follow_formatting: useFilenameFormatting,
},
{ responseType: 'blob' }
)
}