feat(settings): restore From-header preview block under SMTP transport JSON
Brings back the second pre-block I dropped when consolidating the preview. The transport JSON shows what's handed to nodemailer createTransport; the From-header block shows the rendered envelope recipients will see — they answer different questions and both belong. Conditioned on systemEmailAddress so empty configs don't render an empty pre.
This commit is contained in:
1 parent
e71892d0bc
commit
e11553c218
1 file changed
+18
@@ -586,6 +586,7 @@ export const SettingsPage = () => {
|
||||
const from =
|
||||
displayName && address ? { name: displayName, address } : address;
|
||||
return (
|
||||
<>
|
||||
<Box
|
||||
component="pre"
|
||||
p={2}
|
||||
@@ -622,6 +623,23 @@ export const SettingsPage = () => {
|
||||
)}
|
||||
</code>
|
||||
</Box>
|
||||
{address && (
|
||||
<Box
|
||||
component="pre"
|
||||
p={2}
|
||||
borderRadius={theme.shape.borderRadius}
|
||||
bgcolor={theme.palette.action.hover}
|
||||
sx={{
|
||||
fontFamily: theme.typography.fontFamilyMonospace,
|
||||
overflow: "auto",
|
||||
}}
|
||||
>
|
||||
<code>
|
||||
{`From: ${displayName ? `"${displayName}" <${address}>` : address}`}
|
||||
</code>
|
||||
</Box>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
})()}
|
||||
</Stack>
|
||||
|
||||
Reference in new issue
Block a user