From f8c5015e3f32a288b6a1a4b3f0be5712fd555e60 Mon Sep 17 00:00:00 2001
From: Philipp Bischoff
Date: Wed, 5 Jan 2022 23:44:14 +0100
Subject: [PATCH 1/2] fix google chat type mismatch
---
server/notification-providers/google-chat.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/notification-providers/google-chat.js b/server/notification-providers/google-chat.js
index 1610553c7..04c92623d 100644
--- a/server/notification-providers/google-chat.js
+++ b/server/notification-providers/google-chat.js
@@ -6,7 +6,7 @@ const { DOWN, UP } = require("../../src/util");
class GoogleChat extends NotificationProvider {
- name = "Google Chat";
+ name = "Google Chat (Google Workspace only)";
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let okMsg = "Sent Successfully.";
From bcc3cec7d6ad12208e09a6686c1c960d16ad4204 Mon Sep 17 00:00:00 2001
From: Philipp Bischoff
Date: Wed, 5 Jan 2022 23:57:40 +0100
Subject: [PATCH 2/2] extract translation for notification type
---
server/notification-providers/google-chat.js | 2 +-
src/components/notifications/index.js | 2 +-
src/languages/de-DE.js | 1 +
src/languages/en.js | 1 +
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/notification-providers/google-chat.js b/server/notification-providers/google-chat.js
index 04c92623d..2dcd6e20a 100644
--- a/server/notification-providers/google-chat.js
+++ b/server/notification-providers/google-chat.js
@@ -6,7 +6,7 @@ const { DOWN, UP } = require("../../src/util");
class GoogleChat extends NotificationProvider {
- name = "Google Chat (Google Workspace only)";
+ name = "GoogleChat";
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let okMsg = "Sent Successfully.";
diff --git a/src/components/notifications/index.js b/src/components/notifications/index.js
index be73d9ef8..03945f90e 100644
--- a/src/components/notifications/index.js
+++ b/src/components/notifications/index.js
@@ -60,7 +60,7 @@ const NotificationFormList = {
"serwersms": SerwerSMS,
"stackfield": Stackfield,
"WeCom": WeCom,
- "Google Chat (Google Workspace only)": GoogleChat
+ "GoogleChat": GoogleChat
};
export default NotificationFormList;
diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js
index 6c2dd1f19..48cdd2e3b 100644
--- a/src/languages/de-DE.js
+++ b/src/languages/de-DE.js
@@ -194,6 +194,7 @@ export default {
promosms: "PromoSMS",
lunasea: "LunaSea",
apprise: "Apprise (Unterstützung für 50+ Benachrichtigungsdienste)",
+ GoogleChat: "Google Chat (nur Google Workspace)",
pushbullet: "Pushbullet",
line: "Line Messenger",
mattermost: "Mattermost",
diff --git a/src/languages/en.js b/src/languages/en.js
index 80caba9a3..47513466c 100644
--- a/src/languages/en.js
+++ b/src/languages/en.js
@@ -243,6 +243,7 @@ export default {
clicksendsms: "ClickSend SMS",
lunasea: "LunaSea",
apprise: "Apprise (Support 50+ Notification services)",
+ GoogleChat: "Google Chat (Google Workspace only)",
pushbullet: "Pushbullet",
line: "Line Messenger",
mattermost: "Mattermost",