diff options
author | Joris | 2015-09-04 09:52:20 +0200 |
---|---|---|
committer | Joris | 2015-09-04 09:52:20 +0200 |
commit | c1f44a5890fbb26faf6f17c676662ea1bd495f2e (patch) | |
tree | f158bdef5bd985a9b11d46d12878d566268cf6cc /src/client/Update | |
parent | 889df8caf04de5f10a9e623bab3e502e9573159d (diff) |
Adding paging (need some fixes)
Diffstat (limited to 'src/client/Update')
-rw-r--r-- | src/client/Update/Payment.elm | 6 |
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 + } |