aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update/SignIn.elm
blob: 94963c8c0bfa0bdbd4a444c3b23470fb6c00fe2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Update.SignIn
  ( updateSignIn
  ) where

import Model.Action.SignInAction exposing (..)
import Model.View.SignInView exposing (..)

updateSignIn : SignInAction -> SignInView -> SignInView
updateSignIn action signInView =
  case action of
    WaitingServer ->
      { signInView | waitingServer = True }
    ErrorLogin message ->
      { signInView
      | error = Just message
      , waitingServer = False
      }