diff options
author | Joris Guyonvarch | 2015-07-20 21:55:52 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-20 21:55:52 +0200 |
commit | a271d6034bc4cc631a64476d25d21c83a701fa39 (patch) | |
tree | 89ffa3df69999c5c9ed3cda9f4e4ec04f7a6ae1d /src/client/Main.elm | |
parent | a40c4825996c90d107901b0d71162f9356f1395a (diff) | |
download | budget-a271d6034bc4cc631a64476d25d21c83a701fa39.tar.gz budget-a271d6034bc4cc631a64476d25d21c83a701fa39.tar.bz2 budget-a271d6034bc4cc631a64476d25d21c83a701fa39.zip |
Add a payment from the UI, it needs polishing however
Diffstat (limited to 'src/client/Main.elm')
-rw-r--r-- | src/client/Main.elm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Main.elm b/src/client/Main.elm index 519360a..678d20e 100644 --- a/src/client/Main.elm +++ b/src/client/Main.elm @@ -46,10 +46,10 @@ port fetchPayments = |> flip Task.onError reportError reportSuccess : Payments -> Task x () -reportSuccess payments = Signal.send actions.address (UpdatePayments payments) +reportSuccess payments = Signal.send actions.address (GoPaymentView payments) reportError : Http.Error -> Task x () -reportError error = Signal.send actions.address SignIn +reportError error = Signal.send actions.address GoSignInView getPayments : Task Http.Error Payments getPayments = Http.get paymentsDecoder "/payments" |