mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-19 16:08:39 -05:00
feat: add language localization and refactor to remove duplicate ternary op
This commit is contained in:
@@ -43,6 +43,8 @@ const MonitorDetailsControlHeader = ({
|
||||
|
||||
const isTestNotificationsDisabled = monitor?.notifications?.length === 0;
|
||||
|
||||
const tooltipTitle = isTestNotificationsDisabled ? t("testNotificationsDisabled") : "";
|
||||
|
||||
// const [isSending, emailError, sendTestEmail] = useSendTestEmail();
|
||||
|
||||
const [testAllNotifications, isSending, errorAllNotifications] =
|
||||
@@ -66,13 +68,7 @@ const MonitorDetailsControlHeader = ({
|
||||
<Tooltip
|
||||
key={monitor?._id}
|
||||
placement="bottom"
|
||||
title={
|
||||
isTestNotificationsDisabled
|
||||
? t(
|
||||
'There are no notifications setup for this monitor. You need to add one by clicking "Configure" button'
|
||||
)
|
||||
: ""
|
||||
}
|
||||
title={tooltipTitle}
|
||||
>
|
||||
<span>
|
||||
<Button
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -826,6 +826,7 @@
|
||||
"teamMembers": "Team members"
|
||||
},
|
||||
"testLocale": "testLocale",
|
||||
"testNotificationsDisabled": "There are no notifications setup for this monitor. You need to add one by clicking 'Configure' button",
|
||||
"timeZoneInfo": "All dates and times are in GMT+0 time zone.",
|
||||
"timezone": "Timezone",
|
||||
"title": "Title",
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "Bildirimleri dene",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "Tümünü seç",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
@@ -690,6 +690,7 @@
|
||||
},
|
||||
"advancedMatching": "",
|
||||
"sendTestNotifications": "",
|
||||
"testNotificationsDisabled": "",
|
||||
"selectAll": "",
|
||||
"showAdminLoginLink": "",
|
||||
"logsPage": {
|
||||
|
||||
Reference in New Issue
Block a user