diff options
author | Joris | 2016-01-02 22:19:40 +0100 |
---|---|---|
committer | Joris | 2016-01-02 22:19:40 +0100 |
commit | 25d15aacb940c2a19cae3b2e3d8d3ebd1972be02 (patch) | |
tree | 6a418a7a31b713a1d39bdb2da1f798ca07266fe1 /src/client/elm/Model | |
parent | 35493d8ec353f90a6ca67e2aedb702684e0abafa (diff) |
Merge AddPayment and AddMonthlyPayment
Diffstat (limited to 'src/client/elm/Model')
-rw-r--r-- | src/client/elm/Model/Action/LoggedInAction.elm | 4 | ||||
-rw-r--r-- | src/client/elm/Model/Communication.elm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/elm/Model/Action/LoggedInAction.elm b/src/client/elm/Model/Action/LoggedInAction.elm index 22a7d3d..00e0a3e 100644 --- a/src/client/elm/Model/Action/LoggedInAction.elm +++ b/src/client/elm/Model/Action/LoggedInAction.elm @@ -6,12 +6,12 @@ import Model.Payment exposing (Payments, Payment, PaymentId) import Model.Action.MonthlyAction exposing (MonthlyAction) import Model.Action.AccountAction exposing (AccountAction) import Model.Action.AddPaymentAction exposing (AddPaymentAction) +import Model.View.LoggedIn.AddPayment exposing (Frequency) type LoggedInAction = UpdateAdd AddPaymentAction | UpdatePayments Payments - | AddPayment PaymentId String Int - | AddMonthlyPayment PaymentId String Int + | AddPayment PaymentId String Int Frequency | ToggleEdit PaymentId | DeletePayment Payment | UpdatePage Int diff --git a/src/client/elm/Model/Communication.elm b/src/client/elm/Model/Communication.elm index a7ec7a5..616d78f 100644 --- a/src/client/elm/Model/Communication.elm +++ b/src/client/elm/Model/Communication.elm @@ -6,11 +6,11 @@ import Time exposing (Time) import Model.User exposing (UserId) import Model.Payment exposing (..) +import Model.View.LoggedIn.AddPayment exposing (Frequency) type Communication = SignIn String - | AddPayment String Int - | AddMonthlyPayment String Int + | AddPayment String Int Frequency | SetIncome Time Int | DeletePayment Payment Int | DeleteMonthlyPayment PaymentId |