aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/Home/Model.elm
blob: 2bcbe9a67f414dcdf2de0022563a598a4a76b9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module LoggedIn.Home.Model
  ( Model
  , init
  ) where

import LoggedIn.Home.Model.Payer exposing (Payers)

import Model.User exposing (Users, UserId)
import Model.Payment exposing (PaymentId, Payments, PaymentFrequency(..))

import LoggedIn.Home.Account.Model as AccountModel
import LoggedIn.Home.AddPayment.Model as AddPaymentModel

type alias Model =
  { add : AddPaymentModel.Model
  , account : AccountModel.Model
  , paymentEdition : Maybe PaymentId
  , currentPage : Int
  , monthlyDetail : Bool
  }

init : Model
init =
  { add = AddPaymentModel.init Punctual
  , account = AccountModel.init
  , paymentEdition = Nothing
  , currentPage = 1
  , monthlyDetail = False
  }