aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update.elm
diff options
context:
space:
mode:
authorJoris2016-01-02 22:19:40 +0100
committerJoris2016-01-02 22:19:40 +0100
commit25d15aacb940c2a19cae3b2e3d8d3ebd1972be02 (patch)
tree6a418a7a31b713a1d39bdb2da1f798ca07266fe1 /src/client/elm/Update.elm
parent35493d8ec353f90a6ca67e2aedb702684e0abafa (diff)
downloadbudget-25d15aacb940c2a19cae3b2e3d8d3ebd1972be02.tar.gz
budget-25d15aacb940c2a19cae3b2e3d8d3ebd1972be02.tar.bz2
budget-25d15aacb940c2a19cae3b2e3d8d3ebd1972be02.zip
Merge AddPayment and AddMonthlyPayment
Diffstat (limited to 'src/client/elm/Update.elm')
-rw-r--r--src/client/elm/Update.elm10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/elm/Update.elm b/src/client/elm/Update.elm
index 46c1b01..73dde9b 100644
--- a/src/client/elm/Update.elm
+++ b/src/client/elm/Update.elm
@@ -39,6 +39,11 @@ update action model =
|> Effects.task
)
+ GoLoggedInView users me monthlyPayments payments paymentsCount payers ->
+ ( { model | view = V.LoggedInView (initLoggedInView users me monthlyPayments payments paymentsCount payers) }
+ , Effects.none
+ )
+
ServerCommunication communication ->
( model
, sendRequest communication
@@ -52,11 +57,6 @@ update action model =
GoSignInView ->
({ model | view = V.SignInView initSignInView }, Effects.none)
- GoLoggedInView users me monthlyPayments payments paymentsCount payers ->
- ( { model | view = V.LoggedInView (initLoggedInView users me monthlyPayments payments paymentsCount payers) }
- , Effects.none
- )
-
UpdateSignIn signInAction ->
(applySignIn model signInAction, Effects.none)