From c1c40361a7602fda57938e80505852971c77cbd6 Mon Sep 17 00:00:00 2001 From: Bobban Rydh Date: Tue, 14 Jul 2026 00:57:36 +0200 Subject: [PATCH] Changed save settings button --- frontend/src/components/SettingsPage.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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.

+
+ {error && {error}} + {saved && ✓ Settings saved} + +
+

Gotify Notifications

Send a notification to a Gotify instance whenever a DNS record is added, updated, or deleted.

- {error &&

{error}

}
@@ -304,6 +311,7 @@ function NotificationsTab() {

+ ); }