mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Enhancement: "webui" workflowtrigger source option (#9170)
This commit is contained in:
parent
3bf64ae7da
commit
4f08b5fa20
10 changed files with 95 additions and 25 deletions
|
|
@ -71,6 +71,10 @@ export const DOCUMENT_SOURCE_OPTIONS = [
|
|||
id: DocumentSource.MailFetch,
|
||||
name: $localize`Mail Fetch`,
|
||||
},
|
||||
{
|
||||
id: DocumentSource.WebUI,
|
||||
name: $localize`Web UI`,
|
||||
},
|
||||
]
|
||||
|
||||
export const SCHEDULE_DATE_FIELD_OPTIONS = [
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export enum DocumentSource {
|
|||
ConsumeFolder = 1,
|
||||
ApiUpload = 2,
|
||||
MailFetch = 3,
|
||||
WebUI = 4,
|
||||
}
|
||||
|
||||
export enum WorkflowTriggerType {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export class UploadDocumentsService {
|
|||
private uploadFile(file: File) {
|
||||
let formData = new FormData()
|
||||
formData.append('document', file, file.name)
|
||||
formData.append('from_webui', 'true')
|
||||
let status = this.websocketStatusService.newFileUpload(file.name)
|
||||
|
||||
status.message = $localize`Connecting...`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue