summaryrefslogtreecommitdiff
path: root/elm/StaffEdit
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-11-27 13:45:22 +0100
committerYorhel <git@yorhel.nl>2019-11-27 13:45:25 +0100
commit9c4835a94263127f780c0b96db89aa25ceefd960 (patch)
treecc0b6c4e584a4898aaa8c4f00ebb19c43a3d4adf /elm/StaffEdit
parent7cb953265e54a731eb8a5c6bb0d4a45ea337fa80 (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/StaffEdit')
-rw-r--r--elm/StaffEdit/Main.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/StaffEdit/Main.elm b/elm/StaffEdit/Main.elm
index 2eeaea27..9765f0c0 100644
--- a/elm/StaffEdit/Main.elm
+++ b/elm/StaffEdit/Main.elm
@@ -200,7 +200,7 @@ view model =
]
in
- Html.form [ onSubmit Submit ]
+ form_ Submit (model.state == Api.Loading)
[ div [ class "mainbox staffedit" ]
[ h1 [] [ text "General info" ]
, table [ class "formtable" ]