aboutsummaryrefslogtreecommitdiff
path: root/src/View
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-16 20:53:02 +0100
committerJoris Guyonvarch2015-03-16 20:53:02 +0100
commitafb9308a106a5cc09271e4420ed16c56dcd73f98 (patch)
tree90de17be17af00030cb30016918a93d1e783ffae /src/View
parent4e5f27a5b1428b9ad190a87a6bf0d4fe187387c9 (diff)
Adding a stop button
Diffstat (limited to 'src/View')
-rw-r--r--src/View/Timer.elm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/View/Timer.elm b/src/View/Timer.elm
index 13f071c..98f6514 100644
--- a/src/View/Timer.elm
+++ b/src/View/Timer.elm
@@ -26,7 +26,12 @@ timerView (id, timer) =
[ text timer.name ]
, div
[ class <| "time block" ]
- [ text (timeView timer.time) ]
+ [ text (timeView timer.currentTime) ]
+ , button
+ [ class <| "stop block"
+ , onClick (Signal.send updates (UpdateTimer id Stop))
+ ]
+ [ i [ class "fa fa-fw fa-stop" ] [] ]
, button
[ class <| "remove block"
, onClick (Signal.send updates (RemoveTimer id))