mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 16:45:05 +00:00
Make item-detail and item-light consistent in field naming
This changes the public structure for an "item-light" as returned in search results. It makes unifying things easier if both names are the same.
This commit is contained in:
parent
23391ef41c
commit
e2545de347
@ -4756,7 +4756,7 @@ components:
|
|||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
concPerson:
|
concPerson:
|
||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
concEquip:
|
concEquipment:
|
||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
folder:
|
folder:
|
||||||
$ref: "#/components/schemas/IdName"
|
$ref: "#/components/schemas/IdName"
|
||||||
|
@ -36,7 +36,7 @@ makeCorrLink item tagger =
|
|||||||
|
|
||||||
|
|
||||||
makeConcLink :
|
makeConcLink :
|
||||||
{ a | concPerson : Maybe IdName, concEquip : Maybe IdName }
|
{ a | concPerson : Maybe IdName, concEquipment : Maybe IdName }
|
||||||
-> (LinkTarget -> msg)
|
-> (LinkTarget -> msg)
|
||||||
-> List (Html msg)
|
-> List (Html msg)
|
||||||
makeConcLink item tagger =
|
makeConcLink item tagger =
|
||||||
@ -47,7 +47,7 @@ makeConcLink item tagger =
|
|||||||
makeEquip idname =
|
makeEquip idname =
|
||||||
makeLink (LinkConcEquip >> tagger) idname
|
makeLink (LinkConcEquip >> tagger) idname
|
||||||
in
|
in
|
||||||
combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquip)
|
combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquipment)
|
||||||
|
|
||||||
|
|
||||||
makeFolderLink :
|
makeFolderLink :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user