diff --git a/server/notification-providers/signal.js b/server/notification-providers/signal.js index 5dd521bdd..badabdff7 100644 --- a/server/notification-providers/signal.js +++ b/server/notification-providers/signal.js @@ -11,8 +11,14 @@ class Signal extends NotificationProvider { const okMsg = "Sent Successfully."; try { + let message = msg; + + if (notification.signalUseTemplate) { + message = await this.renderTemplate(notification.signalTemplate, msg, monitorJSON, heartbeatJSON); + } + let data = { - message: msg, + message, number: notification.signalNumber, recipients: notification.signalRecipients.replace(/\s/g, "").split(","), }; diff --git a/src/components/notifications/Signal.vue b/src/components/notifications/Signal.vue index 374e0d5ad..1535b4c67 100644 --- a/src/components/notifications/Signal.vue +++ b/src/components/notifications/Signal.vue @@ -52,4 +52,48 @@
+ +