Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/messages/en/modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"modal_ce_webhook_create_title": "Add Webhook",
"modal_ce_webhook_edit_title": "Edit Webhook",
"modal_ce_webhook_events_title": "Trigger events",
"modal_ce_webhook_events_text": "",
"modal_ce_webhook_events_text": "Select which events should trigger this webhook. When a selected event occurs, a POST request will be sent to the configured URL.",
"modal_assign_users_groups_title": "Assign groups to selected users",
"modal_add_new_device_delivery_title": "Share activation credentials",
"modal_assign_user_ip_title": "{firstName} {lastName} IP settings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ const ModalContent = ({ webhook }: ModalData) => {
onChange: formSchema,
},
onSubmit: async ({ value }) => {
const payload = { ...value, token: value.token ?? '' };
// TODO: hwkey provisioning is not yet implemented in the frontend
const payload = { ...value, token: value.token ?? '', on_hwkey_provision: false };
if (isEdit) {
await editWebhook({
id: webhook.id,
Expand Down Expand Up @@ -178,7 +179,7 @@ const ModalContent = ({ webhook }: ModalData) => {
</form.AppField>
<Divider spacing={ThemeSpacing.Xl} />
<DescriptionBlock title={m.modal_ce_webhook_events_title()}>
<p>{m.test_placeholder_long()}</p>
<p>{m.modal_ce_webhook_events_text()}</p>
</DescriptionBlock>
<SizedBox height={ThemeSpacing.Xl} />
<div className="webhooks">
Expand Down
1 change: 1 addition & 0 deletions web/src/shared/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ export interface Webhook {
on_user_created: boolean;
on_user_deleted: boolean;
on_user_modified: boolean;
on_hwkey_provision: boolean;
}

export type AddWebhookRequest = Omit<Webhook, 'id'>;
Expand Down
Loading