mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
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
This commit is contained in:
parent
b244e8fcbb
commit
777ef6bc7b
2 changed files with 11 additions and 0 deletions
|
@ -13,6 +13,15 @@
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="ntfy-priority" class="form-label">{{ $t("Priority") }}</label>
|
<label for="ntfy-priority" class="form-label">{{ $t("Priority") }}</label>
|
||||||
<input id="ntfy-priority" v-model="$parent.notification.ntfyPriority" type="number" class="form-control" required min="1" max="5" step="1">
|
<input id="ntfy-priority" v-model="$parent.notification.ntfyPriority" type="number" class="form-control" required min="1" max="5" step="1">
|
||||||
|
<div class="form-text">
|
||||||
|
<p v-if="$parent.notification.ntfyPriority >= 5">
|
||||||
|
{{ $t("ntfyPriorityHelptextAllEvents") }}
|
||||||
|
</p>
|
||||||
|
<i18n-t v-else tag="p" keypath="ntfyPriorityHelptextAllExceptDown">
|
||||||
|
<code>DOWN</code>
|
||||||
|
<code>{{ $parent.notification.ntfyPriority + 1 }}</code>
|
||||||
|
</i18n-t>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="authentication-method" class="form-label">{{ $t("ntfyAuthenticationMethod") }}</label>
|
<label for="authentication-method" class="form-label">{{ $t("ntfyAuthenticationMethod") }}</label>
|
||||||
|
|
|
@ -756,6 +756,8 @@
|
||||||
"lunaseaDeviceID": "Device ID",
|
"lunaseaDeviceID": "Device ID",
|
||||||
"lunaseaUserID": "User ID",
|
"lunaseaUserID": "User ID",
|
||||||
"ntfyAuthenticationMethod": "Authentication Method",
|
"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",
|
"ntfyUsernameAndPassword": "Username and Password",
|
||||||
"twilioAccountSID": "Account SID",
|
"twilioAccountSID": "Account SID",
|
||||||
"twilioApiKey": "Api Key (optional)",
|
"twilioApiKey": "Api Key (optional)",
|
||||||
|
|
Loading…
Reference in a new issue