mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 08:45:04 +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"
|
||||
concPerson:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
concEquip:
|
||||
concEquipment:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
folder:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
|
@ -36,7 +36,7 @@ makeCorrLink item tagger =
|
||||
|
||||
|
||||
makeConcLink :
|
||||
{ a | concPerson : Maybe IdName, concEquip : Maybe IdName }
|
||||
{ a | concPerson : Maybe IdName, concEquipment : Maybe IdName }
|
||||
-> (LinkTarget -> msg)
|
||||
-> List (Html msg)
|
||||
makeConcLink item tagger =
|
||||
@ -47,7 +47,7 @@ makeConcLink item tagger =
|
||||
makeEquip idname =
|
||||
makeLink (LinkConcEquip >> tagger) idname
|
||||
in
|
||||
combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquip)
|
||||
combine (Maybe.map makePerson item.concPerson) (Maybe.map makeEquip item.concEquipment)
|
||||
|
||||
|
||||
makeFolderLink :
|
||||
|
Loading…
x
Reference in New Issue
Block a user