aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/Home/Header
diff options
context:
space:
mode:
authorJoris2016-08-21 14:30:40 +0200
committerJoris2016-08-21 14:30:40 +0200
commit75804df1cb231033f94183e41cdf79d36d8f6710 (patch)
tree48b7932285091fdbdaba6d77586859c1e1750ce0 /src/client/elm/LoggedIn/Home/Header
parent3889d21ab58fbbc0134854b95013196a82e8d510 (diff)
Show a message if there is an error during a server request
Diffstat (limited to 'src/client/elm/LoggedIn/Home/Header')
-rw-r--r--src/client/elm/LoggedIn/Home/Header/View.elm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/elm/LoggedIn/Home/Header/View.elm b/src/client/elm/LoggedIn/Home/Header/View.elm
index e6b2444..b67fb3b 100644
--- a/src/client/elm/LoggedIn/Home/Header/View.elm
+++ b/src/client/elm/LoggedIn/Home/Header/View.elm
@@ -46,7 +46,7 @@ view loggedData { search } payments frequency =
loggedData
(AddPayment.initialAdd loggedData.translations currentDate frequency)
"AddPayment"
- (text (getMessage "AddPayment" loggedData.translations))
+ (text (getMessage loggedData.translations "AddPayment"))
Nothing
]
, Html.div
@@ -78,7 +78,7 @@ infos loggedData payments =
[ class "infos" ]
[ span
[ class "total" ]
- [ text <| getParamMessage [ count, sum ] "Worth" loggedData.translations ]
+ [ text <| getParamMessage [ count, sum ] loggedData.translations "Worth" ]
, span
[ class "partition" ]
[ text <| paymentsPartition loggedData payments ]
@@ -95,7 +95,7 @@ paymentsPartition loggedData payments =
|> List.sortBy fst
|> List.reverse
|> List.map (\(sum, user) ->
- getParamMessage [ user.name, Format.price loggedData.conf sum ] "By" loggedData.translations
+ getParamMessage [ user.name, Format.price loggedData.conf sum ] loggedData.translations "By"
)
)