Tiny changes
parent
6b38499bdc
commit
790fd43369
|
@ -16,7 +16,7 @@ func init() {
|
||||||
var cmdWebPush = &cli.Command{
|
var cmdWebPush = &cli.Command{
|
||||||
Name: "webpush",
|
Name: "webpush",
|
||||||
Usage: "Generate keys, in the future manage web push subscriptions",
|
Usage: "Generate keys, in the future manage web push subscriptions",
|
||||||
UsageText: "ntfy web-push [generate-keys]",
|
UsageText: "ntfy webpush [keys]",
|
||||||
Category: categoryServer,
|
Category: categoryServer,
|
||||||
|
|
||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
|
@ -24,7 +24,7 @@ var cmdWebPush = &cli.Command{
|
||||||
Action: generateWebPushKeys,
|
Action: generateWebPushKeys,
|
||||||
Name: "keys",
|
Name: "keys",
|
||||||
Usage: "Generate VAPID keys to enable browser background push notifications",
|
Usage: "Generate VAPID keys to enable browser background push notifications",
|
||||||
UsageText: "ntfy web-push generate-keys",
|
UsageText: "ntfy webpush keys",
|
||||||
Category: categoryServer,
|
Category: categoryServer,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
<link rel="icon" type="image/png" href="/static/images/favicon.ico" />
|
<link rel="icon" type="image/png" href="/static/images/favicon.ico" />
|
||||||
|
|
||||||
<!-- Previews in Google, Slack, WhatsApp, etc. -->
|
<!-- Previews in Google, Slack, WhatsApp, etc. -->
|
||||||
|
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
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."
|
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."
|
||||||
|
|
|
@ -57,7 +57,6 @@ const App = () => {
|
||||||
|
|
||||||
const updateTitle = (newNotificationsCount) => {
|
const updateTitle = (newNotificationsCount) => {
|
||||||
document.title = newNotificationsCount > 0 ? `(${newNotificationsCount}) ntfy` : "ntfy";
|
document.title = newNotificationsCount > 0 ? `(${newNotificationsCount}) ntfy` : "ntfy";
|
||||||
|
|
||||||
window.navigator.setAppBadge?.(newNotificationsCount);
|
window.navigator.setAppBadge?.(newNotificationsCount);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ const Notifications = () => {
|
||||||
<Sound />
|
<Sound />
|
||||||
<MinPriority />
|
<MinPriority />
|
||||||
<DeleteAfter />
|
<DeleteAfter />
|
||||||
<WebPushEnabled />
|
{config.enable_web_push && <WebPushEnabled />}
|
||||||
</PrefGroup>
|
</PrefGroup>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
@ -639,7 +639,7 @@ const ReservationsTable = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSubscribeClick = async (reservation) => {
|
const handleSubscribeClick = async (reservation) => {
|
||||||
await subscribeTopic(config.base_url, reservation.topic);
|
await subscribeTopic(config.base_url, reservation.topic, {});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -174,7 +174,6 @@ export const SubscriptionPopup = (props) => {
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Edit fontSize="small" />
|
<Edit fontSize="small" />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
|
||||||
{t("action_bar_change_display_name")}
|
{t("action_bar_change_display_name")}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{showReservationAdd && (
|
{showReservationAdd && (
|
||||||
|
@ -190,7 +189,6 @@ export const SubscriptionPopup = (props) => {
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Lock fontSize="small" color="disabled" />
|
<Lock fontSize="small" color="disabled" />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
|
||||||
<span style={{ opacity: 0.3 }}>{t("action_bar_reservation_add")}</span>
|
<span style={{ opacity: 0.3 }}>{t("action_bar_reservation_add")}</span>
|
||||||
<ReserveLimitChip />
|
<ReserveLimitChip />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
Loading…
Reference in New Issue