diff options
author | Joris | 2015-11-01 11:58:42 +0100 |
---|---|---|
committer | Joris | 2015-11-01 11:58:42 +0100 |
commit | c015db01e2acee9d1fc83cd6a762d0a3e629b353 (patch) | |
tree | 9e6b8f5fa04a3ce6cca51f5cae4cc8fbf6a0f5ed /src/client/Model | |
parent | d3e045e8034c5473964c0529ffc1e181311842c2 (diff) |
Use in client the real currency set in config.txt
Diffstat (limited to 'src/client/Model')
-rw-r--r-- | src/client/Model/Conf.elm | 7 | ||||
-rw-r--r-- | src/client/Model/Config.elm | 18 |
2 files changed, 18 insertions, 7 deletions
diff --git a/src/client/Model/Conf.elm b/src/client/Model/Conf.elm deleted file mode 100644 index 183fd68..0000000 --- a/src/client/Model/Conf.elm +++ /dev/null @@ -1,7 +0,0 @@ -module Model.Conf - ( Conf - ) where - -type alias Conf = - { currency : String - } diff --git a/src/client/Model/Config.elm b/src/client/Model/Config.elm new file mode 100644 index 0000000..e47b032 --- /dev/null +++ b/src/client/Model/Config.elm @@ -0,0 +1,18 @@ +module Model.Config + ( Config + , configDecoder + ) where + +import Json.Decode exposing (..) + +type alias Config = + { currency : String + } + +configDecoder : Decoder Config +configDecoder = object1 Config ("currency" := string) + +defaultConfig : Config +defaultConfig = + { currency = "€" + } |