diff options
author | Joris Guyonvarch | 2015-07-19 00:45:42 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-19 00:45:42 +0200 |
commit | a6727f104f808e533052f2bd83bc89cd6bfa0522 (patch) | |
tree | 2c7b8b16d377c04e9e9a32b74102666f6dae16cf /src/client/Update.elm | |
parent | 3486644b442a0800f645ec9ae7f3ce8fe2b3c9cd (diff) |
Adding UI to sign in and sign out
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r-- | src/client/Update.elm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm index b96d899..3937888 100644 --- a/src/client/Update.elm +++ b/src/client/Update.elm @@ -6,10 +6,12 @@ module Update import Model exposing (Model) import Model.Payment exposing (Payments) +import Model.View exposing (..) type Action = NoOp - | Forbidden + | SignIn + | UpdateLogin String | UpdatePayments Payments actions : Signal.Mailbox Action @@ -20,7 +22,9 @@ updateModel action model = case action of NoOp -> model - Forbidden -> - { model | forbiddenAccess <- True } + SignIn -> + { model | view <- SignInView "" } + UpdateLogin login -> + { model | view <- SignInView login } UpdatePayments payments -> - { model | payments <- Just payments } + { model | view <- PaymentView payments } |