diff options
author | Joris | 2016-03-27 19:44:40 +0200 |
---|---|---|
committer | Joris | 2016-03-27 19:44:40 +0200 |
commit | 5f6c66e4c3cf02e5b1c0a1fac6036b86be06a992 (patch) | |
tree | 510b3b65d13a8003b092b4c9fe62f6456750cd38 /src/client/elm/Update | |
parent | 9b7546b99411a8364eccf6b0262a3c0c7d82380c (diff) |
Regroup signIn modules
Diffstat (limited to 'src/client/elm/Update')
-rw-r--r-- | src/client/elm/Update/SignIn.elm | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/client/elm/Update/SignIn.elm b/src/client/elm/Update/SignIn.elm deleted file mode 100644 index ade5761..0000000 --- a/src/client/elm/Update/SignIn.elm +++ /dev/null @@ -1,30 +0,0 @@ -module Update.SignIn - ( updateSignIn - ) where - -import Model.View.SignInView exposing (..) -import Model.Action.SignInAction exposing (..) -import Model.Translations exposing (getMessage, Translations) - -updateSignIn : Translations -> SignInAction -> SignInView -> SignInView -updateSignIn translations action signInView = - case action of - UpdateLogin login -> - { signInView | - login = login - } - WaitingServer -> - { signInView - | waitingServer = True - } - ValidLogin -> - { signInView - | login = "" - , result = Just (Ok (getMessage "SignInEmailSent" translations)) - , waitingServer = False - } - ErrorLogin message -> - { signInView - | result = Just (Err message) - , waitingServer = False - } |