mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Include archive infos in item detail
This commit is contained in:
@ -86,6 +86,7 @@ trait Conversions {
|
||||
data.item.notes,
|
||||
data.attachments.map((mkAttachment(data) _).tupled).toList,
|
||||
data.sources.map((mkAttachmentSource _).tupled).toList,
|
||||
data.archives.map((mkAttachmentArchive _).tupled).toList,
|
||||
data.tags.map(mkTag).toList
|
||||
)
|
||||
|
||||
@ -97,6 +98,9 @@ trait Conversions {
|
||||
def mkAttachmentSource(ra: RAttachmentSource, m: FileMeta): AttachmentSource =
|
||||
AttachmentSource(ra.id, ra.name, m.length, MimeType.unsafe(m.mimetype.asString))
|
||||
|
||||
def mkAttachmentArchive(ra: RAttachmentArchive, m: FileMeta): AttachmentSource =
|
||||
AttachmentSource(ra.id, ra.name, m.length, MimeType.unsafe(m.mimetype.asString))
|
||||
|
||||
// item list
|
||||
|
||||
def mkQuery(m: ItemSearch, coll: Ident): OItem.Query =
|
||||
|
Reference in New Issue
Block a user