diff options
author | Joris | 2015-09-05 14:14:25 +0200 |
---|---|---|
committer | Joris | 2015-09-05 14:14:25 +0200 |
commit | cc6a51b5ca03ee1a3b5de7c32dd1324e1053f42a (patch) | |
tree | fe60948b87993908f73659c9dbd7ffd96498b7f8 /src/client/Model/View/LoggedView.elm | |
parent | 3b738e0d4cc65f314da7389d4542ec826ba0f454 (diff) |
Renaming PaymentView to LoggedView
Diffstat (limited to 'src/client/Model/View/LoggedView.elm')
-rw-r--r-- | src/client/Model/View/LoggedView.elm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/client/Model/View/LoggedView.elm b/src/client/Model/View/LoggedView.elm new file mode 100644 index 0000000..35fd9e5 --- /dev/null +++ b/src/client/Model/View/LoggedView.elm @@ -0,0 +1,33 @@ +module Model.View.LoggedView + ( LoggedView + , initLoggedView + ) where + +import Model.User exposing (Users, UserId) +import Model.Payment exposing (Payments) +import Model.Payers exposing (Payers) +import Model.View.Payment.Add exposing (..) +import Model.View.Payment.Edition exposing (..) + +type alias LoggedView = + { users : Users + , me : UserId + , add : AddPayment + , payments : Payments + , paymentsCount : Int + , payers : Payers + , edition : Maybe Edition + , currentPage : Int + } + +initLoggedView : Users -> UserId -> Payments -> Int -> Payers -> LoggedView +initLoggedView users me payments paymentsCount payers = + { users = users + , me = me + , add = initAddPayment + , payments = payments + , paymentsCount = paymentsCount + , payers = payers + , edition = Nothing + , currentPage = 1 + } |