diff options
author | Joris | 2015-12-29 22:38:42 +0100 |
---|---|---|
committer | Joris | 2015-12-29 22:38:42 +0100 |
commit | a7db22556b91bc7c499e010b4c051f4442ad8ce2 (patch) | |
tree | 9f991523cee681bf179c191260b95672f1c44def /src/client/Update.elm | |
parent | c79fa3e212e8bb49f950da3c3218e32e3b9df2ec (diff) |
Using persona to validate emails
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r-- | src/client/Update.elm | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm deleted file mode 100644 index 3c4614a..0000000 --- a/src/client/Update.elm +++ /dev/null @@ -1,57 +0,0 @@ -module Update - ( Action(..) - , actions - , updateModel - ) where - -import Time exposing (Time) - -import Model exposing (Model) -import Model.User exposing (Users, UserId) -import Model.Payment exposing (Payments) -import Model.Payer exposing (Payers) -import Model.View as V -import Model.View.SignInView exposing (..) -import Model.View.LoggedInView exposing (..) - -import Update.SignIn exposing (..) -import Update.LoggedIn exposing (..) - -type Action = - NoOp - | UpdateTime Time - | GoSignInView - | SignInError String - | UpdateSignIn SignInAction - | GoLoggedInView Users UserId Payments Payments Int Payers - | UpdateLoggedIn LoggedAction - -actions : Signal.Mailbox Action -actions = Signal.mailbox NoOp - -updateModel : Action -> Model -> Model -updateModel action model = - case action of - NoOp -> - model - UpdateTime time -> - { model | currentTime <- time } - GoSignInView -> - { model | view <- V.SignInView initSignInView } - GoLoggedInView users me monthlyPayments payments paymentsCount payers -> - { model | view <- V.LoggedInView (initLoggedInView users me monthlyPayments payments paymentsCount payers) } - SignInError msg -> - let signInView = { initSignInView | result <- Just (Err msg) } - in { model | view <- V.SignInView signInView } - UpdateSignIn signInAction -> - case model.view of - V.SignInView signInView -> - { model | view <- V.SignInView (updateSignIn signInAction signInView) } - _ -> - model - UpdateLoggedIn loggedAction -> - case model.view of - V.LoggedInView loggedInView -> - { model | view <- V.LoggedInView (updateLoggedIn model loggedAction loggedInView) } - _ -> - model |