perf: 邮件详情的 状态, 时间等

2.0/email-builder
Lei OT 10 months ago
parent 0ab01a4bfa
commit c564f40c41

@ -79,8 +79,7 @@ const EmailDetail = ({ open, setOpen, emailMsg, ...props }) => {
* * 失败: 重发
*/
const ActionBtns = ({className, ...props}) => {
// const { status } = mailData.info // todo: 1 `` [accepted, sent, failed]
const { status } = { status: 'sent' } // debug: 0
const { status } = mailData.info
let btns = []
@ -98,6 +97,7 @@ const EmailDetail = ({ open, setOpen, emailMsg, ...props }) => {
case 'accepted':
break
case 'sent':
case '': //
btns.push(
<Button key={'reply'} onClick={() => onOpenEditor(emailMsg.msgOrigin, 'reply')} size='small' type='text' icon={<ReplyIcon className='text-indigo-500' />}>
回复

@ -186,7 +186,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, toEmail, convers
to: info?.MAI_From || fromEmail,
cc: info?.MAI_CS || '',
// bcc: quote.bcc || '',
subject: `Re: ${info.subject || ''}`,
subject: `Re: ${info.MAI_Subject || ''}`,
};
const forwardValues = { subject: `Fw: ${info.subject || ''}` };
if (action === 'reply') {

Loading…
Cancel
Save