aboutsummaryrefslogtreecommitdiff
path: root/src/client/Update/Payment
diff options
context:
space:
mode:
authorJoris2015-09-06 12:39:03 +0200
committerJoris2015-09-06 12:39:03 +0200
commite10531ba4e60c8709088798763ae3bae6608f9c9 (patch)
treef1550fab8833f0b31831ebb2e943a51eeaa41ee2 /src/client/Update/Payment
parent24633871359ec9fbd63fdfebf79a6351b2792f77 (diff)
Show montly payments with an expandable mechanism
Diffstat (limited to 'src/client/Update/Payment')
-rw-r--r--src/client/Update/Payment/Add.elm29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/client/Update/Payment/Add.elm b/src/client/Update/Payment/Add.elm
deleted file mode 100644
index 27f2af0..0000000
--- a/src/client/Update/Payment/Add.elm
+++ /dev/null
@@ -1,29 +0,0 @@
-module Update.Payment.Add
- ( AddPaymentAction(..)
- , updateAddPayment
- ) where
-
-import Model.View.Payment.Add exposing (..)
-
-type AddPaymentAction =
- UpdateName String
- | UpdateCost String
- | AddError (Maybe String) (Maybe String)
- | ToggleFrequency
-
-updateAddPayment : AddPaymentAction -> AddPayment -> AddPayment
-updateAddPayment action addPayment =
- case action of
- UpdateName name ->
- { addPayment | name <- name }
- UpdateCost cost ->
- { addPayment | cost <- cost }
- AddError nameError costError ->
- { addPayment
- | nameError <- nameError
- , costError <- costError
- }
- ToggleFrequency ->
- { addPayment
- | frequency <- if addPayment.frequency == Punctual then Monthly else Punctual
- }