diff options
author | Yorhel <git@yorhel.nl> | 2019-11-27 13:45:22 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-11-27 13:45:25 +0100 |
commit | 9c4835a94263127f780c0b96db89aa25ceefd960 (patch) | |
tree | cc0b6c4e584a4898aaa8c4f00ebb19c43a3d4adf /elm/DocEdit.elm | |
parent | 7cb953265e54a731eb8a5c6bb0d4a45ea337fa80 (diff) |
Elm: Use fieldset to disable the form while loading
I wasn't able to do this while the .maintabs used floats.
Diffstat (limited to 'elm/DocEdit.elm')
-rw-r--r-- | elm/DocEdit.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/DocEdit.elm b/elm/DocEdit.elm index 0d654e59..ef4ce715 100644 --- a/elm/DocEdit.elm +++ b/elm/DocEdit.elm @@ -80,7 +80,7 @@ update msg model = view : Model -> Html Msg view model = - Html.form [ onSubmit Submit ] + form_ Submit (model.state == Api.Loading) [ div [ class "mainbox" ] [ h1 [] [ text <| "Edit d" ++ String.fromInt model.id ] , table [ class "formtable" ] |