aboutsummaryrefslogtreecommitdiff
path: root/src/View/View.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-17 21:26:40 +0100
committerJoris Guyonvarch2015-03-17 21:26:40 +0100
commit0075abf51db5d1b54117525d7a7f9b06e31c9484 (patch)
treeed7a5b8c3ac74113dca96463a41dcd00548d20c8 /src/View/View.elm
parentc3e8b1a4d428160976c5d9ad770763e8db02f3bc (diff)
Adding an edition mode for a timer
Diffstat (limited to 'src/View/View.elm')
-rw-r--r--src/View/View.elm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/View/View.elm b/src/View/View.elm
index f915952..8da1316 100644
--- a/src/View/View.elm
+++ b/src/View/View.elm
@@ -28,7 +28,7 @@ view model =
|> Dict.toList
|> List.sortBy (.creationTime << snd)
|> List.reverse
- |> timers
+ |> timers model
]
title : Html
@@ -56,8 +56,8 @@ is13 code =
then Ok()
else Err "Not the right key code"
-timers : List (Id, Timer) -> Html
-timers timers =
+timers : Model -> List (Id, Timer) -> Html
+timers model timers =
div
[ class "timers" ]
- (List.map timerView timers)
+ (List.map (timerView model) timers)