aboutsummaryrefslogtreecommitdiff
path: root/src/Update/UpdateTimer.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Update/UpdateTimer.elm')
-rw-r--r--src/Update/UpdateTimer.elm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Update/UpdateTimer.elm b/src/Update/UpdateTimer.elm
index 2e0d9af..30603cd 100644
--- a/src/Update/UpdateTimer.elm
+++ b/src/Update/UpdateTimer.elm
@@ -10,7 +10,8 @@ import Model.TimerState (..)
import Model.Id (..)
type TimerAction =
- Pause
+ Rename String
+ | Pause
| ToggleRunning
| Stop
| SetTime Time
@@ -19,6 +20,8 @@ type TimerAction =
updateTimer : TimerAction -> Timer -> Timer
updateTimer action timer =
case action of
+ Rename name ->
+ { timer | name <- Just name }
Pause ->
{ timer | state <- Idle }
ToggleRunning ->