mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-07 15:45:59 +00:00
Remove redundant fileCount from search result
This commit is contained in:
parent
21cd778c37
commit
b338f18e98
@ -5079,7 +5079,6 @@ components:
|
|||||||
- state
|
- state
|
||||||
- date
|
- date
|
||||||
- source
|
- source
|
||||||
- fileCount
|
|
||||||
- tags
|
- tags
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -5113,9 +5112,6 @@ components:
|
|||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
folder:
|
folder:
|
||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
fileCount:
|
|
||||||
type: integer
|
|
||||||
format: int32
|
|
||||||
attachments:
|
attachments:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
@ -213,7 +213,6 @@ trait Conversions {
|
|||||||
i.concPerson.map(mkIdName),
|
i.concPerson.map(mkIdName),
|
||||||
i.concEquip.map(mkIdName),
|
i.concEquip.map(mkIdName),
|
||||||
i.folder.map(mkIdName),
|
i.folder.map(mkIdName),
|
||||||
i.fileCount,
|
|
||||||
Nil, //attachments
|
Nil, //attachments
|
||||||
Nil, //tags
|
Nil, //tags
|
||||||
Nil, //customfields
|
Nil, //customfields
|
||||||
|
@ -473,12 +473,12 @@ previewMenu settings model item mainAttach =
|
|||||||
[ i [ class "eye icon" ] []
|
[ i [ class "eye icon" ] []
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
if pageCount == 0 || (item.fileCount == 1 && pageCount == 1) then
|
if pageCount == 0 || (List.length item.attachments == 1 && pageCount == 1) then
|
||||||
div [ class "card-attachment-nav" ]
|
div [ class "card-attachment-nav" ]
|
||||||
[ gotoFileBtn
|
[ gotoFileBtn
|
||||||
]
|
]
|
||||||
|
|
||||||
else if item.fileCount == 1 then
|
else if List.length item.attachments == 1 then
|
||||||
div [ class "card-attachment-nav" ]
|
div [ class "card-attachment-nav" ]
|
||||||
[ div [ class "ui small top attached basic icon buttons" ]
|
[ div [ class "ui small top attached basic icon buttons" ]
|
||||||
[ gotoFileBtn
|
[ gotoFileBtn
|
||||||
@ -510,7 +510,7 @@ previewMenu settings model item mainAttach =
|
|||||||
|> String.fromInt
|
|> String.fromInt
|
||||||
|> text
|
|> text
|
||||||
, text "/"
|
, text "/"
|
||||||
, text (String.fromInt item.fileCount)
|
, text (List.length item.attachments |> String.fromInt)
|
||||||
, text ", "
|
, text ", "
|
||||||
, text (String.fromInt pageCount)
|
, text (String.fromInt pageCount)
|
||||||
, text "p."
|
, text "p."
|
||||||
|
@ -224,7 +224,7 @@ concerning =
|
|||||||
|
|
||||||
fileCount : ItemTemplate
|
fileCount : ItemTemplate
|
||||||
fileCount =
|
fileCount =
|
||||||
ItemTemplate (.fileCount >> String.fromInt)
|
ItemTemplate (.attachments >> List.length >> String.fromInt)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user