aboutsummaryrefslogtreecommitdiff
path: root/src/client/View/LoggedIn/Table.elm
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/LoggedIn/Table.elm
parentc1ec9b40fa84be2fd7067251461eda64d3bd8b74 (diff)
downloadbudget-0e85e2815f5bb0ab8b5fb8156bd772b4a7743f13.tar.gz
budget-0e85e2815f5bb0ab8b5fb8156bd772b4a7743f13.tar.bz2
budget-0e85e2815f5bb0ab8b5fb8156bd772b4a7743f13.zip
Using dom buttons for payment delete
Diffstat (limited to 'src/client/View/LoggedIn/Table.elm')
-rw-r--r--src/client/View/LoggedIn/Table.elm7
1 files changed, 4 insertions, 3 deletions
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" ] []
]