mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +00:00
Fix initializing concerned equipment
This commit is contained in:
parent
2f87065b2e
commit
902fd63125
@ -407,6 +407,20 @@ update key flags next msg model =
|
||||
)
|
||||
m4
|
||||
|
||||
( m6, c6 ) =
|
||||
update key
|
||||
flags
|
||||
next
|
||||
(ConcEquipMsg
|
||||
(Comp.Dropdown.SetSelection
|
||||
(item.concEquipment
|
||||
|> Maybe.map List.singleton
|
||||
|> Maybe.withDefault []
|
||||
)
|
||||
)
|
||||
)
|
||||
m5
|
||||
|
||||
proposalCmd =
|
||||
if item.state == "created" then
|
||||
Api.getItemProposals flags item.id GetProposalResp
|
||||
@ -414,7 +428,7 @@ update key flags next msg model =
|
||||
else
|
||||
Cmd.none
|
||||
in
|
||||
( { m5
|
||||
( { m6
|
||||
| item = item
|
||||
, nameModel = item.name
|
||||
, notesModel = item.notes
|
||||
@ -428,6 +442,7 @@ update key flags next msg model =
|
||||
, c3
|
||||
, c4
|
||||
, c5
|
||||
, c6
|
||||
, getOptions flags
|
||||
, proposalCmd
|
||||
, Api.getSentMails flags item.id SentMailsResp
|
||||
|
Loading…
x
Reference in New Issue
Block a user