From 76f8b85eb9f796d6df861a04f702ef5f48630795 Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 29 Mar 2016 23:46:47 +0200 Subject: Move logged data to LoggedIn component --- src/client/elm/View/Header.elm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/client/elm/View') diff --git a/src/client/elm/View/Header.elm b/src/client/elm/View/Header.elm index 5a37d9b..fb0e880 100644 --- a/src/client/elm/View/Header.elm +++ b/src/client/elm/View/Header.elm @@ -25,17 +25,14 @@ renderHeader address model = [] [ a ( [ class "title" ] ++ clickTo Home) - [ h1 - [] - [ text (getMessage "SharedCost" model.translations) ] - ] + [ text (getMessage "SharedCost" model.translations) ] , case model.view of - LoggedInView { home } -> + LoggedInView { me, users } -> div [ class "signedPanel" ] [ a ( [ class "user" ] ++ clickTo User) - [ Dict.get home.account.me home.users + [ Dict.get me users |> Maybe.map .name |> Maybe.withDefault "" |> text -- cgit v1.2.3