aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model
diff options
context:
space:
mode:
authorJoris2015-09-03 23:32:39 +0200
committerJoris2015-09-03 23:32:39 +0200
commit889df8caf04de5f10a9e623bab3e502e9573159d (patch)
treed8c3dff55ffd38914543213e544c55e346e1f13e /src/client/Model
parentebd304d97b612d0ac4ea276b1c29ba8ecc0b7998 (diff)
Give the payments count to the client
Diffstat (limited to 'src/client/Model')
-rw-r--r--src/client/Model/View/PaymentView.elm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/Model/View/PaymentView.elm b/src/client/Model/View/PaymentView.elm
index 19ad355..117be59 100644
--- a/src/client/Model/View/PaymentView.elm
+++ b/src/client/Model/View/PaymentView.elm
@@ -12,15 +12,17 @@ type alias PaymentView =
{ userName : String
, add : AddPayment
, payments : Payments
+ , paymentsCount : Int
, payers : Payers
, edition : Maybe Edition
}
-initPaymentView : String -> Payments -> Payers -> PaymentView
-initPaymentView userName payments payers =
+initPaymentView : String -> Payments -> Int -> Payers -> PaymentView
+initPaymentView userName payments paymentsCount payers =
{ userName = userName
, add = initAddPayment
, payments = payments
+ , paymentsCount = paymentsCount
, payers = payers
, edition = Nothing
}