aboutsummaryrefslogtreecommitdiff
path: root/src/client/Main.elm
diff options
context:
space:
mode:
authorJoris2015-11-01 11:58:42 +0100
committerJoris2015-11-01 11:58:42 +0100
commitc015db01e2acee9d1fc83cd6a762d0a3e629b353 (patch)
tree9e6b8f5fa04a3ce6cca51f5cae4cc8fbf6a0f5ed /src/client/Main.elm
parentd3e045e8034c5473964c0529ffc1e181311842c2 (diff)
downloadbudget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.tar.gz
budget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.tar.bz2
budget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.zip
Use in client the real currency set in config.txt
Diffstat (limited to 'src/client/Main.elm')
-rw-r--r--src/client/Main.elm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/Main.elm b/src/client/Main.elm
index de98809..4f96675 100644
--- a/src/client/Main.elm
+++ b/src/client/Main.elm
@@ -17,6 +17,7 @@ import Model.User exposing (Users, usersDecoder, UserId, userIdDecoder)
import Model.Payment exposing (Payments, paymentsDecoder, perPage)
import Model.Payer exposing (Payers, payersDecoder)
import Model.Translations exposing (..)
+import Model.Config exposing (..)
import Update exposing (Action(..), actions, updateModel)
import Update.SignIn exposing (..)
@@ -29,7 +30,7 @@ main : Signal Html
main = Signal.map renderPage model
model : Signal Model
-model = Signal.foldp updateModel (initialModel initialTime translations) update
+model = Signal.foldp updateModel (initialModel initialTime translations config) update
update : Signal Action
update = Signal.mergeMany
@@ -51,6 +52,10 @@ port translations : String
---------------------------------------
+port config : String
+
+---------------------------------------
+
port initView : Task Http.Error ()
port initView =
case signInError of