aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update/SignIn.elm
blob: 5e8a9bb53bcd76906e129dc517b34a379167147b (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
    Connecting ->
      { signInView | connecting = True }
    ErrorLogin message ->
      { signInView
      | error = Just message
      , connecting = False
      }