aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update
diff options
context:
space:
mode:
authorJoris2016-03-27 19:44:40 +0200
committerJoris2016-03-27 19:44:40 +0200
commit5f6c66e4c3cf02e5b1c0a1fac6036b86be06a992 (patch)
tree510b3b65d13a8003b092b4c9fe62f6456750cd38 /src/client/elm/Update
parent9b7546b99411a8364eccf6b0262a3c0c7d82380c (diff)
Regroup signIn modules
Diffstat (limited to 'src/client/elm/Update')
-rw-r--r--src/client/elm/Update/SignIn.elm30
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
- }