mirror of
https://github.com/zadam/trilium.git
synced 2026-01-10 16:44:29 +01:00
feat(attachments): display MIME type
This commit is contained in:
parent
faa069b8a1
commit
c7bb5ff119
@ -1618,7 +1618,7 @@
|
|||||||
"will_be_deleted_in": "This attachment will be automatically deleted in {{time}}",
|
"will_be_deleted_in": "This attachment will be automatically deleted in {{time}}",
|
||||||
"will_be_deleted_soon": "This attachment will be automatically deleted soon",
|
"will_be_deleted_soon": "This attachment will be automatically deleted soon",
|
||||||
"deletion_reason": ", because the attachment is not linked in the note's content. To prevent deletion, add the attachment link back into the content or convert the attachment into note.",
|
"deletion_reason": ", because the attachment is not linked in the note's content. To prevent deletion, add the attachment link back into the content or convert the attachment into note.",
|
||||||
"role_and_size": "Role: {{role}}, Size: {{size}}",
|
"role_and_size": "Role: {{role}}, size: {{size}}, MIME: {{- mimeType}}",
|
||||||
"link_copied": "Attachment link copied to clipboard.",
|
"link_copied": "Attachment link copied to clipboard.",
|
||||||
"unrecognized_role": "Unrecognized attachment role '{{role}}'."
|
"unrecognized_role": "Unrecognized attachment role '{{role}}'."
|
||||||
},
|
},
|
||||||
|
|||||||
@ -195,7 +195,11 @@ function AttachmentInfo({ attachment, isFullDetail }: { attachment: FAttachment,
|
|||||||
) : (attachment.title)}
|
) : (attachment.title)}
|
||||||
</h4>
|
</h4>
|
||||||
<div className="attachment-details">
|
<div className="attachment-details">
|
||||||
{t("attachment_detail_2.role_and_size", { role: attachment.role, size: utils.formatSize(attachment.contentLength) })}
|
{t("attachment_detail_2.role_and_size", {
|
||||||
|
role: attachment.role,
|
||||||
|
size: utils.formatSize(attachment.contentLength),
|
||||||
|
mimeType: attachment.mime
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div style="flex: 1 1;" />
|
<div style="flex: 1 1;" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user