diff options
author | Joris | 2016-03-29 23:46:47 +0200 |
---|---|---|
committer | Joris | 2016-03-29 23:46:47 +0200 |
commit | 76f8b85eb9f796d6df861a04f702ef5f48630795 (patch) | |
tree | c8b975df9854994cbbefff15908ad9bb728264bc /src/client/elm/View | |
parent | cc58377a48d13ef85cedb5ec0e19eb8b879dd497 (diff) |
Move logged data to LoggedIn component
Diffstat (limited to 'src/client/elm/View')
-rw-r--r-- | src/client/elm/View/Header.elm | 9 |
1 files changed, 3 insertions, 6 deletions
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 |