From 617d30c96792795ab8561a6262c4c5f4e023b6cf Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 27 Mar 2016 21:24:11 +0200 Subject: Regroup monthly modules --- src/client/elm/Update/LoggedIn/Monthly.elm | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/client/elm/Update/LoggedIn/Monthly.elm (limited to 'src/client/elm/Update') diff --git a/src/client/elm/Update/LoggedIn/Monthly.elm b/src/client/elm/Update/LoggedIn/Monthly.elm deleted file mode 100644 index 3741e1f..0000000 --- a/src/client/elm/Update/LoggedIn/Monthly.elm +++ /dev/null @@ -1,21 +0,0 @@ -module Update.LoggedIn.Monthly - ( updateMonthly - ) where - -import Model.Action.MonthlyAction exposing (..) -import Model.View.LoggedIn.Monthly exposing (..) - -updateMonthly : MonthlyAction -> Monthly -> Monthly -updateMonthly action monthly = - case action of - ToggleDetail -> - { monthly | visibleDetail = not monthly.visibleDetail } - AddPayment payment -> - { monthly - | payments = payment :: monthly.payments - , visibleDetail = True - } - DeletePayment payment -> - { monthly - | payments = List.filter (((/=) payment.id) << .id) monthly.payments - } -- cgit v1.2.3