aboutsummaryrefslogtreecommitdiff
path: root/src/Update/UpdateTimer.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-21 12:40:48 +0100
committerJoris Guyonvarch2015-03-21 12:40:48 +0100
commit29eac851219e36bccf2724b05d52b70438b5bf3f (patch)
tree1d6ab9f6e443301895a8277dfa170e039e844e6b /src/Update/UpdateTimer.elm
parent9e6cf2f2f15b3fef1f99a2fcf980eb96945dc936 (diff)
Removing restart button
Diffstat (limited to 'src/Update/UpdateTimer.elm')
-rw-r--r--src/Update/UpdateTimer.elm8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Update/UpdateTimer.elm b/src/Update/UpdateTimer.elm
index 7033f81..e45a3c2 100644
--- a/src/Update/UpdateTimer.elm
+++ b/src/Update/UpdateTimer.elm
@@ -10,8 +10,7 @@ import Model.TimerState (..)
import Model.Id (..)
type TimerAction =
- Restart
- | Pause
+ Pause
| ToggleRunning
| Stop
| SetTime Time
@@ -19,11 +18,6 @@ type TimerAction =
updateTimer : TimerAction -> Timer -> Timer
updateTimer action timer =
case action of
- Restart ->
- { timer
- | currentTime <- initTime timer.initialTime
- , state <- Running
- }
Pause ->
{ timer | state <- Idle }
ToggleRunning ->