mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-07-04 16:48:26 +00:00
Add correspondent organizations in item edit view
This commit is contained in:
@ -196,6 +196,20 @@ update flags msg model =
|
||||
else
|
||||
( model, Cmd.none, Nothing )
|
||||
|
||||
OM om ->
|
||||
let
|
||||
org =
|
||||
Comp.OrgForm.getOrg om
|
||||
in
|
||||
if Comp.OrgForm.isValid om then
|
||||
( { model | submitting = True }
|
||||
, Api.addCorrOrg flags model.itemId org SubmitResp
|
||||
, Nothing
|
||||
)
|
||||
|
||||
else
|
||||
( model, Cmd.none, Nothing )
|
||||
|
||||
_ ->
|
||||
Debug.todo "implement"
|
||||
|
||||
|
Reference in New Issue
Block a user