diff --git a/frontend/src/components/SettingsPage.js b/frontend/src/components/SettingsPage.js index 66ae8ab..577a505 100644 --- a/frontend/src/components/SettingsPage.js +++ b/frontend/src/components/SettingsPage.js @@ -60,7 +60,7 @@ function NotificationsTab() { } async function handleSave(e) { - e.preventDefault(); + if (e) e.preventDefault(); setSaving(true); setError(''); setSaved(false); try { await saveSettings({ gotify: { ...form, priority: Number(form.priority) }, ntfy: { ...ntfy, priority: Number(ntfy.priority) }, smtp: { ...smtp, port: Number(smtp.port) }, webhook, notifications: events }); @@ -113,13 +113,23 @@ function NotificationsTab() { if (loading) return
Loading…
; return ( + <> +Configure notification channels. All enabled channels receive the same events.
+Send a notification to a Gotify instance whenever a DNS record is added, updated, or deleted.
- {error &&{error}
}