diff options
author | Joris | 2015-09-16 20:45:01 +0200 |
---|---|---|
committer | Joris | 2015-09-16 20:45:01 +0200 |
commit | 57cb2f33a78a2b30e7bdb60d82aaa54842da431b (patch) | |
tree | 3b7f1c85e13f070292d5c33946749429b1e35828 /src/client/View/LoggedIn | |
parent | 6b3c243031e941b58fc5df0d0d00ec8cad62d4e0 (diff) |
Stop the undo button of the income form to submit
Diffstat (limited to 'src/client/View/LoggedIn')
-rw-r--r-- | src/client/View/LoggedIn/Account.elm | 7 |
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 ] |