Merge pull request #2504 from Sky-walkerX/refactor/email-settings-toggle
refactor(settings): moved email settings toggle buttons to end of line and renamed the wordings
This commit is contained in:
3 files changed
+45
-46
No files matched your search
@@ -212,37 +212,35 @@ const SettingsEmail = ({
|
|||||||
gap: theme.spacing(4),
|
gap: theme.spacing(4),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography>{t("settingsEmailSecure")}</Typography>
|
{[
|
||||||
<Switch
|
["settingsEmailSecure", "systemEmailSecure", systemEmailSecure],
|
||||||
name="systemEmailSecure"
|
["settingsEmailPool", "systemEmailPool", systemEmailPool],
|
||||||
checked={systemEmailSecure}
|
["settingsEmailIgnoreTLS", "systemEmailIgnoreTLS", systemEmailIgnoreTLS],
|
||||||
onChange={handleChange}
|
["settingsEmailRequireTLS", "systemEmailRequireTLS", systemEmailRequireTLS],
|
||||||
/>
|
[
|
||||||
<Typography>{t("settingsEmailPool")}</Typography>
|
"settingsEmailRejectUnauthorized",
|
||||||
<Switch
|
"systemEmailRejectUnauthorized",
|
||||||
name="systemEmailPool"
|
systemEmailRejectUnauthorized,
|
||||||
checked={systemEmailPool}
|
],
|
||||||
onChange={handleChange}
|
].map(([labelKey, name, value]) => (
|
||||||
/>
|
<Box
|
||||||
<Typography>{t("settingsEmailIgnoreTLS")}</Typography>
|
key={name}
|
||||||
<Switch
|
sx={{
|
||||||
name="systemEmailIgnoreTLS"
|
display: "flex",
|
||||||
checked={systemEmailIgnoreTLS}
|
alignItems: "center",
|
||||||
onChange={handleChange}
|
justifyContent: "space-between",
|
||||||
/>
|
}}
|
||||||
<Typography>{t("settingsEmailRequireTLS")}</Typography>
|
>
|
||||||
<Switch
|
<Typography>{t(labelKey)}</Typography>
|
||||||
name="systemEmailRequireTLS"
|
<Switch
|
||||||
checked={systemEmailRequireTLS}
|
name={name}
|
||||||
onChange={handleChange}
|
checked={value}
|
||||||
/>
|
onChange={handleChange}
|
||||||
<Typography>{t("settingsEmailRejectUnauthorized")}</Typography>
|
/>
|
||||||
<Switch
|
</Box>
|
||||||
name="systemEmailRejectUnauthorized"
|
))}
|
||||||
checked={systemEmailRejectUnauthorized}
|
|
||||||
onChange={handleChange}
|
|
||||||
/>
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
{systemEmailHost &&
|
{systemEmailHost &&
|
||||||
systemEmailPort &&
|
systemEmailPort &&
|
||||||
|
|||||||
@@ -1033,8 +1033,8 @@ class NetworkService {
|
|||||||
|
|
||||||
async flushQueue() {
|
async flushQueue() {
|
||||||
return this.axiosInstance.post(`/queue/flush`);
|
return this.axiosInstance.post(`/queue/flush`);
|
||||||
|
}
|
||||||
|
|
||||||
async exportMonitors() {
|
async exportMonitors() {
|
||||||
const response = await this.axiosInstance.get("/monitors/export", {
|
const response = await this.axiosInstance.get("/monitors/export", {
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
|
|||||||
+15
-14
@@ -749,11 +749,11 @@
|
|||||||
},
|
},
|
||||||
"advancedMatching": "Advanced matching",
|
"advancedMatching": "Advanced matching",
|
||||||
"settingsEmailTLSServername": "TLS Servername - Optional Hostname for TLS Validation when host is an IP",
|
"settingsEmailTLSServername": "TLS Servername - Optional Hostname for TLS Validation when host is an IP",
|
||||||
"settingsEmailIgnoreTLS": "Ignore TLS - Disable STARTTLS",
|
"settingsEmailIgnoreTLS": "Disable STARTTLS: Don't use TLS even if the server supports it",
|
||||||
"settingsEmailRequireTLS": "Require TLS - Force STARTTLS",
|
"settingsEmailRequireTLS": "Force STARTTLS: Require TLS upgrade, fail if not supported",
|
||||||
"settingsEmailRejectUnauthorized": "Reject Unauthorized",
|
"settingsEmailRejectUnauthorized": "Reject invalid certificates: Reject connections with self-signed or untrusted certificates",
|
||||||
"settingsEmailSecure": "Secure - Use SSL",
|
"settingsEmailSecure": "Use SSL (recommended): Encrypt the connection using SSL/TLS",
|
||||||
"settingsEmailPool": "Pool - Enable connection pooling",
|
"settingsEmailPool": "Enable connection pooling: Reuse existing connections to improve performance",
|
||||||
"sendTestNotifications": "Send test notifications",
|
"sendTestNotifications": "Send test notifications",
|
||||||
"selectAll": "Select all",
|
"selectAll": "Select all",
|
||||||
"queuePage": {
|
"queuePage": {
|
||||||
@@ -785,15 +785,16 @@
|
|||||||
"failCountHeader": "Fail count",
|
"failCountHeader": "Fail count",
|
||||||
"failedAtHeader": "Last failed at",
|
"failedAtHeader": "Last failed at",
|
||||||
"failReasonHeader": "Fail reason"
|
"failReasonHeader": "Fail reason"
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"title": "Export Monitors",
|
||||||
|
"success": "Monitors exported successfully!",
|
||||||
|
"failed": "Failed to export monitors"
|
||||||
|
},
|
||||||
|
"monitorActions": {
|
||||||
|
"title": "Export/Import",
|
||||||
|
"import": "Import Monitors",
|
||||||
|
"export": "Export Monitors"
|
||||||
}
|
}
|
||||||
"export": {
|
|
||||||
"title": "Export Monitors",
|
|
||||||
"success": "Monitors exported successfully!",
|
|
||||||
"failed": "Failed to export monitors"
|
|
||||||
},
|
|
||||||
"monitorActions": {
|
|
||||||
"title": "Export/Import",
|
|
||||||
"import": "Import Monitors",
|
|
||||||
"export": "Export Monitors"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user