From 1cfd5e02bbd92f54a6b888d475f9f3002f3763bb Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Mon, 16 Mar 2015 21:00:52 +0100 Subject: Adding a restart button --- src/View/Timer.elm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/View') diff --git a/src/View/Timer.elm b/src/View/Timer.elm index 98f6514..271de5c 100644 --- a/src/View/Timer.elm +++ b/src/View/Timer.elm @@ -27,6 +27,11 @@ timerView (id, timer) = , div [ class <| "time block" ] [ text (timeView timer.currentTime) ] + , button + [ class <| "restart block" + , onClick (Signal.send updates (UpdateTimer id Restart)) + ] + [ i [ class "fa fa-fw fa-backward" ] [] ] , button [ class <| "stop block" , onClick (Signal.send updates (UpdateTimer id Stop)) -- cgit v1.2.3