Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Issue #557: include template during webhook tests
rcourtman665fe7902c2d
diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.tsxindex a5507a8188..ff0a0b639c 100644--- a/frontend-modern/src/components/Alerts/WebhookConfig.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfig.tsx@@ -767,9 +767,16 @@ export function WebhookConfig(props: WebhookConfigProps) {}});const customFields = buildMapFromInputs(customFieldInputs());+ const { payloadTemplate, ...restFormData } = formData();+ const testPayload = {+ ...restFormData,+ headers,+ customFields,+ template: payloadTemplate ?? restFormData.template ?? '',+ };// Use a consistent temporary ID for this form sessionconst tempId = editingId() || 'temp-new-webhook';- props.onTest(tempId, { ...formData(), headers, customFields });+ props.onTest(tempId, testPayload);}}disabled={props.testing === (editingId() || 'temp-new-webhook')}class="px-3 py-1.5 border border-gray-300 rounded text-xs hover:bg-gray-100 dark:border-gray-600 dark:text-gray-200"