Skip to content

Commit

Permalink
Tiny changes
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Jun 14, 2023
1 parent 6b38499 commit 790fd43
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cmd/webpush.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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{
{
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,
},
},
Expand Down
1 change: 0 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<link rel="icon" type="image/png" href="/static/images/favicon.ico" />

<!-- Previews in Google, Slack, WhatsApp, etc. -->

<meta
name="description"
content="ntfy lets you send push notifications via scripts from any computer or phone. Made with ❤ by Philipp C. Heckel, Apache License 2.0, source at https://heckel.io/ntfy."
Expand Down
1 change: 0 additions & 1 deletion web/src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const App = () => {

const updateTitle = (newNotificationsCount) => {
document.title = newNotificationsCount > 0 ? `(${newNotificationsCount}) ntfy` : "ntfy";

window.navigator.setAppBadge?.(newNotificationsCount);
};

Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Preferences.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Notifications = () => {
<Sound />
<MinPriority />
<DeleteAfter />
<WebPushEnabled />
{config.enable_web_push && <WebPushEnabled />}
</PrefGroup>
</Card>
);
Expand Down Expand Up @@ -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 (
Expand Down
2 changes: 0 additions & 2 deletions web/src/components/SubscriptionPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ export const SubscriptionPopup = (props) => {
<ListItemIcon>
<Edit fontSize="small" />
</ListItemIcon>

{t("action_bar_change_display_name")}
</MenuItem>
{showReservationAdd && (
Expand All @@ -190,7 +189,6 @@ export const SubscriptionPopup = (props) => {
<ListItemIcon>
<Lock fontSize="small" color="disabled" />
</ListItemIcon>

<span style={{ opacity: 0.3 }}>{t("action_bar_reservation_add")}</span>
<ReserveLimitChip />
</MenuItem>
Expand Down

0 comments on commit 790fd43

Please sign in to comment.