aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/View/LoggedIn/Table.elm
diff options
context:
space:
mode:
authorJoris2015-12-31 19:34:29 +0100
committerJoris2015-12-31 19:34:29 +0100
commitb73ba24f3440b81698c9d5c370739d03f958f059 (patch)
tree72caa19d605d9e9af2d43a6f62c177ddb3d0f3b3 /src/client/elm/View/LoggedIn/Table.elm
parent5bfd349bedb9c395cbeb38bb888e379ba36d5d35 (diff)
downloadbudget-b73ba24f3440b81698c9d5c370739d03f958f059.tar.gz
budget-b73ba24f3440b81698c9d5c370739d03f958f059.tar.bz2
budget-b73ba24f3440b81698c9d5c370739d03f958f059.zip
Fetch all the payments, do the paging only in the UI
Diffstat (limited to 'src/client/elm/View/LoggedIn/Table.elm')
-rw-r--r--src/client/elm/View/LoggedIn/Table.elm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/elm/View/LoggedIn/Table.elm b/src/client/elm/View/LoggedIn/Table.elm
index f5a08b5..51a7b73 100644
--- a/src/client/elm/View/LoggedIn/Table.elm
+++ b/src/client/elm/View/LoggedIn/Table.elm
@@ -49,6 +49,8 @@ paymentLines model loggedInView =
loggedInView.payments
|> List.sortBy (Date.toTime << .creation)
|> List.reverse
+ |> List.drop ((loggedInView.currentPage - 1) * perPage)
+ |> List.take perPage
|> List.map (paymentLine model loggedInView)
paymentLine : Model -> LoggedInView -> Payment -> Html