Merge pull request #2427 from bluewave-labs/feat/test-email

Feat: New Email Options
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-15 17:11:12 +08:00
commit 1607aba78f
9 files changed
+204 -53

No files matched your search

+12 -2
View File
@@ -56,17 +56,27 @@ const Settings = () => {
// Handlers
const handleChange = async (e) => {
const { name, value } = e.target;
const { name, value, checked } = e.target;
// Special case for showURL until handled properly in the backend
if (name === "showURL") {
dispatch(setShowURL(value));
return;
}
let newValue;
if (
name === "systemEmailIgnoreTLS" ||
name === "systemEmailRequireTLS" ||
name === "systemEmailRejectUnauthorized" ||
name === "systemEmailSecure" ||
name === "systemEmailPool"
) {
newValue = checked;
}
// Build next state early
const newSettingsData = {
...settingsData,
settings: { ...settingsData.settings, [name]: value },
settings: { ...settingsData.settings, [name]: newValue ?? value },
};
// Validate