From 75804df1cb231033f94183e41cdf79d36d8f6710 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 21 Aug 2016 14:30:40 +0200 Subject: Show a message if there is an error during a server request --- src/client/elm/View/Header.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/elm/View/Header.elm') diff --git a/src/client/elm/View/Header.elm b/src/client/elm/View/Header.elm index d5969b9..08a429f 100644 --- a/src/client/elm/View/Header.elm +++ b/src/client/elm/View/Header.elm @@ -22,7 +22,7 @@ view : Model -> Html Msg view model = header [] - ( [ div [ class "title" ] [ text (getMessage "SharedCost" model.translations) ] ] + ( [ div [ class "title" ] [ text (getMessage model.translations "SharedCost") ] ] ++ let item page name = a [ href (Page.toHash page) @@ -31,7 +31,7 @@ view model = , ("current", model.page == page) ] ] - [ text (getMessage name model.translations) + [ text (getMessage model.translations name) ] in case model.view of LoggedInView { me, users } -> -- cgit v1.2.3