aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Model
diff options
context:
space:
mode:
authorJoris2016-03-20 22:38:44 +0100
committerJoris2016-03-21 20:43:55 +0100
commit1c7d6ea6e3bcd3c672cb5eb3cf22ffc88cabb257 (patch)
tree4ff8aeb6aa0f159548f8f506374276c1a2c97f7d /src/client/elm/Model
parent47104f0b3965cd1dfba0f466afdb5e8983dc7bec (diff)
use config-manager instead of ConfigFile
Diffstat (limited to 'src/client/elm/Model')
-rw-r--r--src/client/elm/Model/Conf.elm13
-rw-r--r--src/client/elm/Model/Config.elm18
2 files changed, 13 insertions, 18 deletions
diff --git a/src/client/elm/Model/Conf.elm b/src/client/elm/Model/Conf.elm
new file mode 100644
index 0000000..ad71d83
--- /dev/null
+++ b/src/client/elm/Model/Conf.elm
@@ -0,0 +1,13 @@
+module Model.Conf
+ ( Conf
+ , confDecoder
+ ) where
+
+import Json.Decode exposing (..)
+
+type alias Conf =
+ { currency : String
+ }
+
+confDecoder : Decoder Conf
+confDecoder = object1 Conf ("currency" := string)
diff --git a/src/client/elm/Model/Config.elm b/src/client/elm/Model/Config.elm
deleted file mode 100644
index e47b032..0000000
--- a/src/client/elm/Model/Config.elm
+++ /dev/null
@@ -1,18 +0,0 @@
-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 = "€"
- }