diff --git a/server/notification.js b/server/notification.js index ffd030c..8c7e9f5 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 d08cb50..6ee36b2 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 }, } }, @@ -254,11 +260,12 @@ export default { this.id = null; this.notification = { name: "", - type: null, + type: null } - + // Default set to Telegram this.notification.type = "telegram" + this.notification.gotifyPriority = 8 } this.modal.show()