aboutsummaryrefslogtreecommitdiff
path: root/src/client/View
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/View')
-rw-r--r--src/client/View/LoggedIn/Account.elm7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/View/LoggedIn/Account.elm b/src/client/View/LoggedIn/Account.elm
index 253647a..7e383f3 100644
--- a/src/client/View/LoggedIn/Account.elm
+++ b/src/client/View/LoggedIn/Account.elm
@@ -110,7 +110,9 @@ incomeEdition model account edition =
]
[]
, button
- [ class "validateIncomeEdition" ]
+ [ type' "submit"
+ , class "validateIncomeEdition"
+ ]
[ text (getMessage "Validate" model.translations) ]
, toggleIncomeEdition "undoIncomeEdition" (getMessage "Undo" model.translations)
, case edition.error of
@@ -121,7 +123,8 @@ incomeEdition model account edition =
toggleIncomeEdition : String -> String -> Html
toggleIncomeEdition className name =
button
- [ class className
+ [ type' "button"
+ , class className
, onClick actions.address (UpdateLoggedIn << UpdateAccount <| ToggleIncomeEdition)
]
[ text name ]