From 790fd43369b6f62253954f6c547afe1df33217df Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Wed, 14 Jun 2023 08:04:16 -0400 Subject: [PATCH] Tiny changes --- cmd/webpush.go | 4 ++-- web/index.html | 1 - web/src/components/App.jsx | 1 - web/src/components/Preferences.jsx | 4 ++-- web/src/components/SubscriptionPopup.jsx | 2 -- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cmd/webpush.go b/cmd/webpush.go index 94f45c77..2aec4d7f 100644 --- a/cmd/webpush.go +++ b/cmd/webpush.go @@ -16,7 +16,7 @@ func init() { var cmdWebPush = &cli.Command{ Name: "webpush", Usage: "Generate keys, in the future manage web push subscriptions", - UsageText: "ntfy web-push [generate-keys]", + UsageText: "ntfy webpush [keys]", Category: categoryServer, Subcommands: []*cli.Command{ @@ -24,7 +24,7 @@ var cmdWebPush = &cli.Command{ Action: generateWebPushKeys, Name: "keys", Usage: "Generate VAPID keys to enable browser background push notifications", - UsageText: "ntfy web-push generate-keys", + UsageText: "ntfy webpush keys", Category: categoryServer, }, }, diff --git a/web/index.html b/web/index.html index 82bae45e..9f4c7b2e 100644 --- a/web/index.html +++ b/web/index.html @@ -20,7 +20,6 @@ - { const updateTitle = (newNotificationsCount) => { document.title = newNotificationsCount > 0 ? `(${newNotificationsCount}) ntfy` : "ntfy"; - window.navigator.setAppBadge?.(newNotificationsCount); }; diff --git a/web/src/components/Preferences.jsx b/web/src/components/Preferences.jsx index eeb6ee0c..7fb2753c 100644 --- a/web/src/components/Preferences.jsx +++ b/web/src/components/Preferences.jsx @@ -86,7 +86,7 @@ const Notifications = () => { - + {config.enable_web_push && } ); @@ -639,7 +639,7 @@ const ReservationsTable = (props) => { }; const handleSubscribeClick = async (reservation) => { - await subscribeTopic(config.base_url, reservation.topic); + await subscribeTopic(config.base_url, reservation.topic, {}); }; return ( diff --git a/web/src/components/SubscriptionPopup.jsx b/web/src/components/SubscriptionPopup.jsx index 7d154ef5..24ce9cbc 100644 --- a/web/src/components/SubscriptionPopup.jsx +++ b/web/src/components/SubscriptionPopup.jsx @@ -174,7 +174,6 @@ export const SubscriptionPopup = (props) => { - {t("action_bar_change_display_name")} {showReservationAdd && ( @@ -190,7 +189,6 @@ export const SubscriptionPopup = (props) => { - {t("action_bar_reservation_add")}