From 04f33c7dd3db4f05d3fc2a8a4674d4dfbcef56f1 Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 11 Mar 2026 18:02:36 +0100 Subject: [PATCH] remove placeholder, add variable to Webhook --- web/messages/en/modal.json | 2 +- .../WebhooksPage/modals/CEWebhookModal/CEWebhookModal.tsx | 5 +++-- web/src/shared/api/types.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/messages/en/modal.json b/web/messages/en/modal.json index d8dbef2e91..abc7a4a8da 100644 --- a/web/messages/en/modal.json +++ b/web/messages/en/modal.json @@ -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", diff --git a/web/src/pages/WebhooksPage/modals/CEWebhookModal/CEWebhookModal.tsx b/web/src/pages/WebhooksPage/modals/CEWebhookModal/CEWebhookModal.tsx index 7632289712..48cc2b6e4a 100644 --- a/web/src/pages/WebhooksPage/modals/CEWebhookModal/CEWebhookModal.tsx +++ b/web/src/pages/WebhooksPage/modals/CEWebhookModal/CEWebhookModal.tsx @@ -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, @@ -178,7 +179,7 @@ const ModalContent = ({ webhook }: ModalData) => { -

{m.test_placeholder_long()}

+

{m.modal_ce_webhook_events_text()}

diff --git a/web/src/shared/api/types.ts b/web/src/shared/api/types.ts index 0267661a9f..ef0fac4845 100644 --- a/web/src/shared/api/types.ts +++ b/web/src/shared/api/types.ts @@ -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;