mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-04 06:05:59 +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) ->
|
SubmitResp (Ok res) ->
|
||||||
|
let
|
||||||
|
ret =
|
||||||
|
if res.success then
|
||||||
|
Just (makeValue model.form)
|
||||||
|
|
||||||
|
else
|
||||||
|
Nothing
|
||||||
|
in
|
||||||
( { model
|
( { model
|
||||||
| result = Just res
|
| result = Just res
|
||||||
, submitting = False
|
, submitting = False
|
||||||
}
|
}
|
||||||
, Cmd.none
|
, Cmd.none
|
||||||
, Just (makeValue model.form)
|
, ret
|
||||||
)
|
)
|
||||||
|
|
||||||
SubmitResp (Err err) ->
|
SubmitResp (Err err) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user