From afb9308a106a5cc09271e4420ed16c56dcd73f98 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Mon, 16 Mar 2015 20:53:02 +0100 Subject: Adding a stop button --- src/View/Timer.elm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/View') 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)) -- cgit v1.2.3