diff options
Diffstat (limited to 'src/client/elm/Model')
-rw-r--r-- | src/client/elm/Model/Action/SignInAction.elm | 4 | ||||
-rw-r--r-- | src/client/elm/Model/View/SignInView.elm | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/client/elm/Model/Action/SignInAction.elm b/src/client/elm/Model/Action/SignInAction.elm index eaa9f8b..619dbda 100644 --- a/src/client/elm/Model/Action/SignInAction.elm +++ b/src/client/elm/Model/Action/SignInAction.elm @@ -3,5 +3,7 @@ module Model.Action.SignInAction ) where type SignInAction = - WaitingServer + UpdateLogin String + | WaitingServer + | ValidLogin String | ErrorLogin String diff --git a/src/client/elm/Model/View/SignInView.elm b/src/client/elm/Model/View/SignInView.elm index a950867..0d69445 100644 --- a/src/client/elm/Model/View/SignInView.elm +++ b/src/client/elm/Model/View/SignInView.elm @@ -4,12 +4,14 @@ module Model.View.SignInView ) where type alias SignInView = - { waitingServer : Bool - , error : Maybe String + { login : String + , waitingServer : Bool + , result : Maybe (Result String String) } initSignInView : SignInView initSignInView = - { waitingServer = False - , error = Nothing + { login = "" + , waitingServer = False + , result = Nothing } |