mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Enhancement: "webui" workflowtrigger source option (#9170)
This commit is contained in:
@@ -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...`
|
||||
|
Reference in New Issue
Block a user