diff options
Diffstat (limited to 'src/client/elm/SignIn/Model.elm')
-rw-r--r-- | src/client/elm/SignIn/Model.elm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/client/elm/SignIn/Model.elm b/src/client/elm/SignIn/Model.elm new file mode 100644 index 0000000..e01de12 --- /dev/null +++ b/src/client/elm/SignIn/Model.elm @@ -0,0 +1,17 @@ +module SignIn.Model + ( Model + , init + ) where + +type alias Model = + { login : String + , waitingServer : Bool + , result : Maybe (Result String String) + } + +init : Maybe String -> Model +init mbSignInError = + { login = "" + , waitingServer = False + , result = Maybe.map Err mbSignInError + } |