fix: dialog release button no Check icon, add size/attachments row, add Mimecast console link
This commit is contained in:
parent
6c2c8ec25f
commit
90c60d1be7
1 changed files with 17 additions and 2 deletions
|
|
@ -655,6 +655,21 @@ function MessageAnalysisDialog({ message, onClose, onRelease, releasing }: {
|
|||
<span className="text-muted-foreground">{message.reason}</span>
|
||||
</div>
|
||||
)}
|
||||
<div className="grid grid-cols-[72px_1fr] gap-2 px-3 py-2">
|
||||
<span className="text-muted-foreground text-xs pt-0.5">Size</span>
|
||||
<span className="text-muted-foreground">
|
||||
{message.size ? `${(message.size / 1024).toFixed(1)} KB` : '—'}
|
||||
{message.hasAttachments ? <span className="ml-2 inline-flex items-center gap-0.5 text-xs"><Mail className="w-3 h-3" /> has attachments</span> : ''}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Body not available note */}
|
||||
<div className="rounded-md border border-dashed px-3 py-2.5 text-xs text-muted-foreground flex items-start gap-2">
|
||||
<Info className="w-3.5 h-3.5 mt-0.5 flex-shrink-0" />
|
||||
<span>Message body is not accessible via the Mimecast held mail API. To preview the full content, open the Mimecast Administration Console.
|
||||
<a href="https://admin.services.mimecast.com" target="_blank" rel="noopener noreferrer" className="ml-1 underline hover:text-foreground">Open Mimecast Console →</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Explanation */}
|
||||
|
|
@ -691,11 +706,11 @@ function MessageAnalysisDialog({ message, onClose, onRelease, releasing }: {
|
|||
<Button
|
||||
size="sm"
|
||||
variant="outline"
|
||||
className="flex-shrink-0 gap-1 text-green-700 border-green-300 hover:bg-green-50 dark:hover:bg-green-950/20"
|
||||
className="flex-shrink-0 text-green-700 border-green-300 hover:bg-green-50 dark:hover:bg-green-950/20"
|
||||
disabled={releasing}
|
||||
onClick={() => { onRelease(message); onClose(); }}
|
||||
>
|
||||
{releasing ? <Loader2 className="w-3 h-3 animate-spin" /> : <Check className="w-3 h-3" />}
|
||||
{releasing && <Loader2 className="w-3 h-3 animate-spin mr-1" />}
|
||||
Release
|
||||
</Button>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue