aboutsummaryrefslogtreecommitdiff
path: root/src/client/Update.elm
diff options
context:
space:
mode:
authorJoris2015-09-03 23:32:39 +0200
committerJoris2015-09-03 23:32:39 +0200
commit889df8caf04de5f10a9e623bab3e502e9573159d (patch)
treed8c3dff55ffd38914543213e544c55e346e1f13e /src/client/Update.elm
parentebd304d97b612d0ac4ea276b1c29ba8ecc0b7998 (diff)
downloadbudget-889df8caf04de5f10a9e623bab3e502e9573159d.tar.gz
budget-889df8caf04de5f10a9e623bab3e502e9573159d.tar.bz2
budget-889df8caf04de5f10a9e623bab3e502e9573159d.zip
Give the payments count to the client
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r--src/client/Update.elm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm
index df19775..374c5d0 100644
--- a/src/client/Update.elm
+++ b/src/client/Update.elm
@@ -22,7 +22,7 @@ type Action =
| GoSignInView
| SignInError String
| UpdateSignIn SignInAction
- | GoPaymentView String Payments Payers
+ | GoPaymentView String Payments Int Payers
| UpdatePayment PaymentAction
actions : Signal.Mailbox Action
@@ -37,8 +37,8 @@ updateModel action model =
{ model | currentTime <- time }
GoSignInView ->
{ model | view <- V.SignInView initSignInView }
- GoPaymentView userName payments payers ->
- { model | view <- V.PaymentView (initPaymentView userName payments payers) }
+ GoPaymentView userName payments paymentsCount payers ->
+ { model | view <- V.PaymentView (initPaymentView userName payments paymentsCount payers) }
SignInError msg ->
let signInView = { initSignInView | result <- Just (Err msg) }
in { model | view <- V.SignInView signInView }