mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 16:45:05 +00:00
Display error message properly on modal edit
This commit is contained in:
parent
3771587e55
commit
d66ae4fdc2
@ -300,12 +300,20 @@ update flags msg model =
|
||||
)
|
||||
|
||||
SubmitResp (Ok res) ->
|
||||
let
|
||||
ret =
|
||||
if res.success then
|
||||
Just (makeValue model.form)
|
||||
|
||||
else
|
||||
Nothing
|
||||
in
|
||||
( { model
|
||||
| result = Just res
|
||||
, submitting = False
|
||||
}
|
||||
, Cmd.none
|
||||
, Just (makeValue model.form)
|
||||
, ret
|
||||
)
|
||||
|
||||
SubmitResp (Err err) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user