diff options
author | Joris Guyonvarch | 2015-07-20 21:55:52 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-20 21:55:52 +0200 |
commit | a271d6034bc4cc631a64476d25d21c83a701fa39 (patch) | |
tree | 89ffa3df69999c5c9ed3cda9f4e4ec04f7a6ae1d /src/client/Update/SignIn.elm | |
parent | a40c4825996c90d107901b0d71162f9356f1395a (diff) |
Add a payment from the UI, it needs polishing however
Diffstat (limited to 'src/client/Update/SignIn.elm')
-rw-r--r-- | src/client/Update/SignIn.elm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/Update/SignIn.elm b/src/client/Update/SignIn.elm index 0e118dc..0aa7c84 100644 --- a/src/client/Update/SignIn.elm +++ b/src/client/Update/SignIn.elm @@ -3,22 +3,22 @@ module Update.SignIn , updateSignIn ) where -import Model.View.SignIn exposing (..) +import Model.View.SignInView exposing (..) type SignInAction = UpdateLogin String | ValidLogin String | ErrorLogin String -updateSignIn : SignInAction -> SignIn -> SignIn -updateSignIn action signIn = +updateSignIn : SignInAction -> SignInView -> SignInView +updateSignIn action signInView = case action of UpdateLogin login -> - { signIn | login <- login } + { signInView | login <- login } ValidLogin message -> - { signIn + { signInView | login <- "" , result <- Just (Ok message) } ErrorLogin message -> - { signIn | result <- Just (Err message) } + { signInView | result <- Just (Err message) } |