diff --git a/server/notification.js b/server/notification.js index ffd030cb0..8c7e9f5e9 100644 --- a/server/notification.js +++ b/server/notification.js @@ -26,7 +26,7 @@ class Notification { } await axios.post(`${notification.gotifyserverurl}/message?token=${notification.gotifyapplicationToken}`, { "message": msg, - "priority": 8, + "priority": notification.gotifyPriority || 8, "title": "Uptime-Kuma" }) return true; diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index d08cb5019..73354f2cd 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -182,6 +182,11 @@ + +
+ + +
@@ -220,6 +225,7 @@ export default { notification: { name: "", type: null, + gotifyPriority: 8 }, } }, @@ -256,9 +262,10 @@ export default { name: "", type: null, } - + // Default set to Telegram this.notification.type = "telegram" + this.notification.gotifyPriority = 8 } this.modal.show()