diff options
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 - } |