basic support for bulk editing.

This commit is contained in:
jonaswinkler
2020-11-30 13:58:40 +01:00
parent aa0325deb7
commit b0b141bc81
4 changed files with 52 additions and 16 deletions

View File

@@ -66,4 +66,12 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
return this.http.post(this.getResourceUrl(null, 'post_document'), formData)
}
bulk_edit(ids: number[], method: string, args: any[]) {
return this.http.post(this.getResourceUrl(null, 'bulk_edit'), {
'ids': ids,
'method': method,
'args': args
})
}
}