aboutsummaryrefslogtreecommitdiff
path: root/src/client/View
diff options
context:
space:
mode:
authorJoris2015-09-08 09:41:07 +0200
committerJoris2015-09-08 09:41:07 +0200
commit0e85e2815f5bb0ab8b5fb8156bd772b4a7743f13 (patch)
tree7ca1f02e0cdbe9271e06f249b8742bc280a707bf /src/client/View
parentc1ec9b40fa84be2fd7067251461eda64d3bd8b74 (diff)
Using dom buttons for payment delete
Diffstat (limited to 'src/client/View')
-rw-r--r--src/client/View/LoggedIn/Monthly.elm3
-rw-r--r--src/client/View/LoggedIn/Table.elm7
2 files changed, 6 insertions, 4 deletions
diff --git a/src/client/View/LoggedIn/Monthly.elm b/src/client/View/LoggedIn/Monthly.elm
index 6d30e4a..5d7260e 100644
--- a/src/client/View/LoggedIn/Monthly.elm
+++ b/src/client/View/LoggedIn/Monthly.elm
@@ -74,5 +74,6 @@ paymentLine model loggedInView payment =
[ class "cell delete"
, onClick serverCommunications.address (SC.DeleteMonthlyPayment payment.id)
]
- [ renderIcon "times" ]
+ [ button [] [ renderIcon "times" ]
+ ]
]
diff --git a/src/client/View/LoggedIn/Table.elm b/src/client/View/LoggedIn/Table.elm
index 6342369..a8fef3e 100644
--- a/src/client/View/LoggedIn/Table.elm
+++ b/src/client/View/LoggedIn/Table.elm
@@ -77,10 +77,11 @@ paymentLine model loggedInView payment =
, if loggedInView.me == payment.userId
then
div
- [ class "cell delete"
- , onClick serverCommunications.address (SC.DeletePayment payment.id payment.userId payment.cost loggedInView.currentPage)
+ [ class "cell delete" ]
+ [ button
+ [ onClick serverCommunications.address (SC.DeletePayment payment.id payment.userId payment.cost loggedInView.currentPage) ]
+ [ renderIcon "times" ]
]
- [ renderIcon "times" ]
else
div [ class "cell" ] []
]