diff options
author | Joris Guyonvarch | 2015-07-10 00:03:42 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-10 00:03:42 +0200 |
commit | 0041c546869f0a7fd59a085cc75b481237b6c380 (patch) | |
tree | 4814108670fc1a3e7c5a334e884accd0e9dc5e96 /src/client/Update.elm | |
parent | 4ce9751c9e645916fdde71874c2cdadd252f32a0 (diff) |
Fetching payments and showing them in a table
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r-- | src/client/Update.elm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm new file mode 100644 index 0000000..6eedb7f --- /dev/null +++ b/src/client/Update.elm @@ -0,0 +1,23 @@ +module Update + ( Action(..) + , actions + , updateModel + ) where + +import Model exposing (Model) +import Model.Payment exposing (Payments) + +type Action = + NoOp + | UpdatePayments Payments + +actions : Signal.Mailbox Action +actions = Signal.mailbox NoOp + +updateModel : Action -> Model -> Model +updateModel action model = + case action of + NoOp -> + model + UpdatePayments payments -> + { model | payments <- payments } |