Support specify webhook headers

This commit is contained in:
shamoon
2024-10-26 22:09:47 -07:00
parent c4d59e0e77
commit 8d76654ff6
7 changed files with 52 additions and 3 deletions

View File

@@ -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>

View File

@@ -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)

View File

@@ -72,5 +72,7 @@ export interface WorkflowAction extends ObjectWithId {
notification_destination_url?: string
notification_destination_url_headers?: string
notification_include_document?: boolean
}