aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2015-09-16 20:45:01 +0200
committerJoris2015-09-16 20:45:01 +0200
commit57cb2f33a78a2b30e7bdb60d82aaa54842da431b (patch)
tree3b7f1c85e13f070292d5c33946749429b1e35828 /src
parent6b3c243031e941b58fc5df0d0d00ec8cad62d4e0 (diff)
downloadbudget-57cb2f33a78a2b30e7bdb60d82aaa54842da431b.tar.gz
budget-57cb2f33a78a2b30e7bdb60d82aaa54842da431b.tar.bz2
budget-57cb2f33a78a2b30e7bdb60d82aaa54842da431b.zip
Stop the undo button of the income form to submit
Diffstat (limited to 'src')
-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 ]