aboutsummaryrefslogtreecommitdiff
path: root/src/client/Update
diff options
context:
space:
mode:
authorJoris2015-09-04 09:52:20 +0200
committerJoris2015-09-04 09:52:20 +0200
commitc1f44a5890fbb26faf6f17c676662ea1bd495f2e (patch)
treef158bdef5bd985a9b11d46d12878d566268cf6cc /src/client/Update
parent889df8caf04de5f10a9e623bab3e502e9573159d (diff)
Adding paging (need some fixes)
Diffstat (limited to 'src/client/Update')
-rw-r--r--src/client/Update/Payment.elm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/Update/Payment.elm b/src/client/Update/Payment.elm
index 53dc08a..798cdb4 100644
--- a/src/client/Update/Payment.elm
+++ b/src/client/Update/Payment.elm
@@ -20,6 +20,7 @@ type PaymentAction =
| AddPayment PaymentId String Int
| ToggleEdit PaymentId
| Remove PaymentId
+ | UpdatePage Int Payments
updatePayment : Model -> PaymentAction -> PaymentView -> PaymentView
updatePayment model action paymentView =
@@ -51,3 +52,8 @@ updatePayment model action paymentView =
}
Nothing ->
paymentView
+ UpdatePage page payments ->
+ { paymentView
+ | currentPage <- page
+ , payments <- payments
+ }