From 9a8bea576177bccdc10ea2d70b76610f6aa37e19 Mon Sep 17 00:00:00 2001 From: duane Date: Thu, 1 Jun 2023 08:23:13 -0500 Subject: [PATCH] Changes 'Mention Channel' -> 'Notify Channel' - Updates variable names - Updates any Slack mention references --- server/notification-providers/slack.js | 2 +- src/components/notifications/Slack.vue | 4 ++-- src/lang/en.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index b3986b00f..41c2bd02c 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -28,7 +28,7 @@ class Slack extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; - if (notification.slackchannelmention) { + if (notification.slackchannelnotify) { msg += " "; } diff --git a/src/components/notifications/Slack.vue b/src/components/notifications/Slack.vue index a9b05e683..e99fc31e3 100644 --- a/src/components/notifications/Slack.vue +++ b/src/components/notifications/Slack.vue @@ -26,8 +26,8 @@
- - + +
diff --git a/src/lang/en.json b/src/lang/en.json index 5ebbef133..10dca0811 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -625,7 +625,7 @@ "matrixDesc1": "You can find the internal room ID by looking in the advanced section of the room settings in your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.", "matrixDesc2": "It is highly recommended you create a new user and do not use your own Matrix user's access token as it will allow full access to your account and all the rooms you joined. Instead, create a new user and only invite it to the room that you want to receive the notification in. You can get the access token by running {0}", "Channel Name": "Channel Name", - "Mention Channel": "Mention Channel", + "Notify Channel": "Notify Channel", "Uptime Kuma URL": "Uptime Kuma URL", "Icon Emoji": "Icon Emoji", "signalImportant": "IMPORTANT: You cannot mix groups and numbers in recipients!",