Hide send email button until validation is complete
This commit is contained in:
1 parent
38a1d5e7a1
commit
d19bbf2b8e
2 files changed
+12
-11
No files matched your search
@@ -136,8 +136,7 @@ const SettingsEmail = ({
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "row",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
|
||||||
gap: theme.spacing(4),
|
gap: theme.spacing(4),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -250,14 +249,16 @@ const SettingsEmail = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Button
|
{systemEmailHost && systemEmailPort && systemEmailAddress && (
|
||||||
variant="contained"
|
<Button
|
||||||
color="accent"
|
variant="contained"
|
||||||
loading={isSending}
|
color="accent"
|
||||||
onClick={handleSendTestEmail}
|
loading={isSending}
|
||||||
>
|
onClick={handleSendTestEmail}
|
||||||
{t("settingsTestEmail", "Send test e-mail")}
|
>
|
||||||
</Button>
|
{t("settingsTestEmail", "Send test e-mail")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -684,7 +684,7 @@
|
|||||||
"settingsEmailRequireTLS": "Require TLS - Force STARTTLS",
|
"settingsEmailRequireTLS": "Require TLS - Force STARTTLS",
|
||||||
"settingsEmailRejectUnauthorized": "Reject Unauthorized",
|
"settingsEmailRejectUnauthorized": "Reject Unauthorized",
|
||||||
"settingsEmailSecure": "Secure - Use SSL",
|
"settingsEmailSecure": "Secure - Use SSL",
|
||||||
"settingsEmailPool": "Pool",
|
"settingsEmailPool": "Pool - Enable connection pooling",
|
||||||
"state": "State",
|
"state": "State",
|
||||||
"statusBreadCrumbsStatusPages": "Status Pages",
|
"statusBreadCrumbsStatusPages": "Status Pages",
|
||||||
"statusBreadCrumbsDetails": "Details",
|
"statusBreadCrumbsDetails": "Details",
|
||||||
|
|||||||
Reference in new issue
Block a user