aboutsummaryrefslogtreecommitdiff
path: root/src/client/LoggedIn/Home/View
diff options
context:
space:
mode:
authorJoris2017-03-27 10:18:40 +0200
committerJoris2017-03-27 10:18:40 +0200
commit64ff4707fdcd81c27c6be9903c3c82bc543ef016 (patch)
treefa0c3a9112f4f7c8bd383ad3e597041ab7d5a503 /src/client/LoggedIn/Home/View
parent40273c30166877b3341125ad5248793b2f2fcc64 (diff)
Modelize punctual and monthly payment pages
Diffstat (limited to 'src/client/LoggedIn/Home/View')
-rw-r--r--src/client/LoggedIn/Home/View/Table.elm7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/LoggedIn/Home/View/Table.elm b/src/client/LoggedIn/Home/View/Table.elm
index 8828488..f94bb19 100644
--- a/src/client/LoggedIn/Home/View/Table.elm
+++ b/src/client/LoggedIn/Home/View/Table.elm
@@ -30,15 +30,16 @@ import LoggedIn.View.Format as Format
import View.Date as Date
import Model.Payment as Payment exposing (..)
+import Model.Frequency exposing (Frequency(..))
import Model.PaymentCategory as PaymentCategory
import Model.Translations exposing (getMessage)
import Model.User exposing (getUserName)
-view : LoggedData -> Home.Model -> Payments -> Frequency -> Html Msg
-view loggedData homeModel payments frequency =
+view : LoggedData -> Home.Model -> Payments -> Frequency -> Int -> Html Msg
+view loggedData homeModel payments frequency page =
let visiblePayments =
payments
- |> List.drop ((homeModel.currentPage - 1) * perPage)
+ |> List.drop ((page - 1) * perPage)
|> List.take perPage
in div
[ class "table" ]