From da2f86d80df23c2e35378e19735006a0ee95b8fd Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:17:11 -0600 Subject: [PATCH] tweaks --- frigate/comms/webpush.py | 2 ++ web/src/views/settings/NotificationsSettingsView.tsx | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py index dffe4518c..c2e9e629b 100644 --- a/frigate/comms/webpush.py +++ b/frigate/comms/webpush.py @@ -253,6 +253,7 @@ class WebPushClient(Communicator): # type: ignore[misc] payload={}, title="Test Notification", message="This is a test notification from Frigate.", + direct_url="/", notification_type="test", ) @@ -309,4 +310,5 @@ class WebPushClient(Communicator): # type: ignore[misc] self.cleanup_registrations() def stop(self) -> None: + logger.info("Closing notification queue") self.notification_thread.join() diff --git a/web/src/views/settings/NotificationsSettingsView.tsx b/web/src/views/settings/NotificationsSettingsView.tsx index daa84ec52..5ea545fb3 100644 --- a/web/src/views/settings/NotificationsSettingsView.tsx +++ b/web/src/views/settings/NotificationsSettingsView.tsx @@ -144,7 +144,7 @@ export default function NotificationView({ setRegistration(null); }); toast.success( - "Successfully registered for notifications. Restart to start receiving notifications.", + "Successfully registered for notifications. Restarting Frigate is required before any notifications (including a test notification) can be sent.", { position: "top-center", }, @@ -438,7 +438,7 @@ export default function NotificationView({