diff options
author | Joris | 2015-09-05 13:53:36 +0200 |
---|---|---|
committer | Joris | 2015-09-05 13:53:36 +0200 |
commit | 3b738e0d4cc65f314da7389d4542ec826ba0f454 (patch) | |
tree | ee99236117ad698974c5a6e40ab170f617cb06f3 /src/client/Update.elm | |
parent | 139d4a103a6a48880e5f12a796033956f223563c (diff) |
Using UserId instead of UserName to indentify users
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r-- | src/client/Update.elm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm index 374c5d0..910f080 100644 --- a/src/client/Update.elm +++ b/src/client/Update.elm @@ -7,6 +7,7 @@ module Update import Time exposing (Time) import Model exposing (Model) +import Model.User exposing (Users, UserId) import Model.Payment exposing (Payments) import Model.Payers exposing (Payers) import Model.View as V @@ -22,7 +23,7 @@ type Action = | GoSignInView | SignInError String | UpdateSignIn SignInAction - | GoPaymentView String Payments Int Payers + | GoPaymentView Users UserId Payments Int Payers | UpdatePayment PaymentAction actions : Signal.Mailbox Action @@ -37,8 +38,8 @@ updateModel action model = { model | currentTime <- time } GoSignInView -> { model | view <- V.SignInView initSignInView } - GoPaymentView userName payments paymentsCount payers -> - { model | view <- V.PaymentView (initPaymentView userName payments paymentsCount payers) } + GoPaymentView users me payments paymentsCount payers -> + { model | view <- V.PaymentView (initPaymentView users me payments paymentsCount payers) } SignInError msg -> let signInView = { initSignInView | result <- Just (Err msg) } in { model | view <- V.SignInView signInView } |