aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update.elm
diff options
context:
space:
mode:
authorJoris2016-01-01 14:39:40 +0100
committerJoris2016-01-01 14:39:40 +0100
commit0d0c99fd28b782c7daf02fb5cc48d3eb252e705d (patch)
tree93f9836152b6db9fc7a7af34ceb1dde920b1f3c3 /src/client/elm/Update.elm
parent5f3d75406ef36924616e3289342647f4939d5004 (diff)
downloadbudget-0d0c99fd28b782c7daf02fb5cc48d3eb252e705d.tar.gz
budget-0d0c99fd28b782c7daf02fb5cc48d3eb252e705d.tar.bz2
budget-0d0c99fd28b782c7daf02fb5cc48d3eb252e705d.zip
Simplify persona usage
Diffstat (limited to 'src/client/elm/Update.elm')
-rw-r--r--src/client/elm/Update.elm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/elm/Update.elm b/src/client/elm/Update.elm
index ed4b99d..62782a3 100644
--- a/src/client/elm/Update.elm
+++ b/src/client/elm/Update.elm
@@ -20,10 +20,11 @@ import Update.LoggedIn exposing (..)
type Action =
NoOp
| UpdateTime Time
+ | GoLoadingView
| GoSignInView
+ | GoLoggedInView Users UserId Payments Payments Int Payers
| SignInError String
| UpdateSignIn SignInAction
- | GoLoggedInView Users UserId Payments Payments Int Payers
| UpdateLoggedIn LoggedAction
actions : Signal.Mailbox Action
@@ -36,6 +37,8 @@ updateModel action model =
model
UpdateTime time ->
{ model | currentTime = time }
+ GoLoadingView ->
+ { model | view = V.LoadingView }
GoSignInView ->
{ model | view = V.SignInView initSignInView }
GoLoggedInView users me monthlyPayments payments paymentsCount payers ->