mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Support specify webhook headers
This commit is contained in:
@@ -329,6 +329,7 @@
|
||||
<pngx-input-text i18n-title title="Notification body" formControlName="notification_body" [error]="error?.actions?.[i]?.notification_body"></pngx-input-text>
|
||||
<pngx-input-text i18n-title title="Notification emails" formControlName="notification_destination_emails" [error]="error?.actions?.[i]?.notification_destination_emails"></pngx-input-text>
|
||||
<pngx-input-text i18n-title title="Notification url" formControlName="notification_destination_url" [error]="error?.actions?.[i]?.notification_destination_url"></pngx-input-text>
|
||||
<pngx-input-text i18n-title title="Notification headers" formControlName="notification_destination_url_headers" [error]="error?.actions?.[i]?.notification_destination_url_headers"></pngx-input-text>
|
||||
<pngx-input-switch i18n-title title="Notification include document" formControlName="notification_include_document"></pngx-input-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -414,6 +414,9 @@ export class WorkflowEditDialogComponent
|
||||
notification_destination_url: new FormControl(
|
||||
action.notification_destination_url
|
||||
),
|
||||
notification_destination_url_headers: new FormControl(
|
||||
action.notification_destination_url_headers
|
||||
),
|
||||
notification_include_document: new FormControl(
|
||||
action.notification_include_document
|
||||
),
|
||||
@@ -522,6 +525,7 @@ export class WorkflowEditDialogComponent
|
||||
notification_body: null,
|
||||
notification_destination_emails: null,
|
||||
notification_destination_url: null,
|
||||
notification_destination_url_headers: null,
|
||||
notification_include_document: null,
|
||||
}
|
||||
this.object.actions.push(action)
|
||||
|
@@ -72,5 +72,7 @@ export interface WorkflowAction extends ObjectWithId {
|
||||
|
||||
notification_destination_url?: string
|
||||
|
||||
notification_destination_url_headers?: string
|
||||
|
||||
notification_include_document?: boolean
|
||||
}
|
||||
|
Reference in New Issue
Block a user