diff options
Diffstat (limited to 'src/client/View/LoggedIn/Table.elm')
-rw-r--r-- | src/client/View/LoggedIn/Table.elm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/View/LoggedIn/Table.elm b/src/client/View/LoggedIn/Table.elm index a8fef3e..0c65e50 100644 --- a/src/client/View/LoggedIn/Table.elm +++ b/src/client/View/LoggedIn/Table.elm @@ -57,7 +57,9 @@ paymentLine model loggedInView payment = , onClick actions.address (UpdateLoggedIn (ToggleEdit payment.id)) ] [ div [ class "cell category" ] [ text payment.name ] - , div [ class "cell cost" ] [ text ((toString payment.cost) ++ " " ++ (getMessage "MoneySymbol" model.translations)) ] + , div + [ class ("cell cost" ++ if payment.cost < 0 then " refund" else "") ] + [ text ((toString payment.cost) ++ " " ++ (getMessage "MoneySymbol" model.translations)) ] , div [ class "cell user" ] [ payment.userId |