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/LoggedIn/Model.elm | |
parent | cc58377a48d13ef85cedb5ec0e19eb8b879dd497 (diff) |
Move logged data to LoggedIn component
Diffstat (limited to 'src/client/elm/LoggedIn/Model.elm')
-rw-r--r-- | src/client/elm/LoggedIn/Model.elm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/client/elm/LoggedIn/Model.elm b/src/client/elm/LoggedIn/Model.elm index a86b464..90f1b2b 100644 --- a/src/client/elm/LoggedIn/Model.elm +++ b/src/client/elm/LoggedIn/Model.elm @@ -3,15 +3,30 @@ module LoggedIn.Model , init ) where +import Time exposing (Time) + import Model.Init exposing (..) +import Model.Payment exposing (Payments) +import Model.User exposing (Users, UserId) +import Model.Income exposing (Incomes) import LoggedIn.Home.Model as HomeModel type alias Model = { home : HomeModel.Model + , users : Users + , me : UserId + , payments : Payments + , monthlyPayments : Payments + , incomes : Incomes } init : Init -> Model init initData = - { home = HomeModel.init initData + { home = HomeModel.init + , users = initData.users + , me = initData.me + , payments = initData.payments + , monthlyPayments = initData.monthlyPayments + , incomes = initData.incomes } |