From 777ef6bc7b0dfca4c5da7f12c41defe05888fd4e Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 9 Dec 2023 10:37:33 +0100 Subject: [PATCH] chore: added a helptext for `ntfy`'s `priority` field (#4175) * added a helptext for `ntfy`'s `priority` field * linting fixes * removed an unnecessary `Math.max` call --- src/components/notifications/Ntfy.vue | 9 +++++++++ src/lang/en.json | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/components/notifications/Ntfy.vue b/src/components/notifications/Ntfy.vue index 70aedb26..ba94451a 100644 --- a/src/components/notifications/Ntfy.vue +++ b/src/components/notifications/Ntfy.vue @@ -13,6 +13,15 @@
+
+

+ {{ $t("ntfyPriorityHelptextAllEvents") }} +

+ + DOWN + {{ $parent.notification.ntfyPriority + 1 }} + +
diff --git a/src/lang/en.json b/src/lang/en.json index 2c0987e3..134000e7 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -756,6 +756,8 @@ "lunaseaDeviceID": "Device ID", "lunaseaUserID": "User ID", "ntfyAuthenticationMethod": "Authentication Method", + "ntfyPriorityHelptextAllEvents": "All events are send with the maximum priority", + "ntfyPriorityHelptextAllExceptDown": "All events are send with this priority, except {0}-events, which have a priority of {1}", "ntfyUsernameAndPassword": "Username and Password", "twilioAccountSID": "Account SID", "twilioApiKey": "Api Key (optional)",