aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Msg.elm
diff options
context:
space:
mode:
authorJoris2016-08-21 14:30:40 +0200
committerJoris2016-08-21 14:30:40 +0200
commit75804df1cb231033f94183e41cdf79d36d8f6710 (patch)
tree48b7932285091fdbdaba6d77586859c1e1750ce0 /src/client/elm/Msg.elm
parent3889d21ab58fbbc0134854b95013196a82e8d510 (diff)
downloadbudget-75804df1cb231033f94183e41cdf79d36d8f6710.tar.gz
budget-75804df1cb231033f94183e41cdf79d36d8f6710.tar.bz2
budget-75804df1cb231033f94183e41cdf79d36d8f6710.zip
Show a message if there is an error during a server request
Diffstat (limited to 'src/client/elm/Msg.elm')
-rw-r--r--src/client/elm/Msg.elm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/elm/Msg.elm b/src/client/elm/Msg.elm
index 93e7f80..49d13ca 100644
--- a/src/client/elm/Msg.elm
+++ b/src/client/elm/Msg.elm
@@ -2,11 +2,14 @@ module Msg exposing
( Msg(..)
)
+import Date exposing (Date)
import Time exposing (Time)
import Page exposing (Page)
import Model.Init exposing (Init)
+import Model.Payment exposing (PaymentId, Frequency)
+import Model.Income exposing (IncomeId)
import Dialog
import Dialog.Model as DialogModel
@@ -24,7 +27,14 @@ type Msg =
| GoLoggedInView Init
| UpdateSignIn SignInMsg.Msg
| UpdateLoggedIn LoggedInMsg.Msg
+ | CreatePayment String Int Date Frequency
+ | EditPayment PaymentId String Int Date Frequency
+ | DeletePayment PaymentId
+ | CreateIncome Int Date
+ | EditIncome IncomeId Int Date
+ | DeleteIncome IncomeId
| GoSignInView
| SignOut
+ | Error String
| Dialog (Dialog.Msg DialogModel.Model DialogMsg.Msg Msg)
| Tooltip Tooltip.Msg