mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +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
|
m4
|
||||||
|
|
||||||
|
( m6, c6 ) =
|
||||||
|
update key
|
||||||
|
flags
|
||||||
|
next
|
||||||
|
(ConcEquipMsg
|
||||||
|
(Comp.Dropdown.SetSelection
|
||||||
|
(item.concEquipment
|
||||||
|
|> Maybe.map List.singleton
|
||||||
|
|> Maybe.withDefault []
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
m5
|
||||||
|
|
||||||
proposalCmd =
|
proposalCmd =
|
||||||
if item.state == "created" then
|
if item.state == "created" then
|
||||||
Api.getItemProposals flags item.id GetProposalResp
|
Api.getItemProposals flags item.id GetProposalResp
|
||||||
@ -414,7 +428,7 @@ update key flags next msg model =
|
|||||||
else
|
else
|
||||||
Cmd.none
|
Cmd.none
|
||||||
in
|
in
|
||||||
( { m5
|
( { m6
|
||||||
| item = item
|
| item = item
|
||||||
, nameModel = item.name
|
, nameModel = item.name
|
||||||
, notesModel = item.notes
|
, notesModel = item.notes
|
||||||
@ -428,6 +442,7 @@ update key flags next msg model =
|
|||||||
, c3
|
, c3
|
||||||
, c4
|
, c4
|
||||||
, c5
|
, c5
|
||||||
|
, c6
|
||||||
, getOptions flags
|
, getOptions flags
|
||||||
, proposalCmd
|
, proposalCmd
|
||||||
, Api.getSentMails flags item.id SentMailsResp
|
, Api.getSentMails flags item.id SentMailsResp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user