[Clocks / Timers]  adding ability to stop

added the stop timer menu option
This commit is contained in:
DJ
2017-01-14 16:42:44 -06:00
parent 7fc66e2de8
commit 9df59522d9
6 changed files with 208 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ define([
"./src/controllers/RefreshingController",
"./src/actions/StartTimerAction",
"./src/actions/RestartTimerAction",
"./src/actions/StopTimerAction",
"text!./res/templates/clock.html",
"text!./res/templates/timer.html",
'legacyRegistry'
@@ -39,6 +40,7 @@ define([
RefreshingController,
StartTimerAction,
RestartTimerAction,
StopTimerAction,
clockTemplate,
timerTemplate,
legacyRegistry
@@ -149,6 +151,17 @@ define([
"name": "Restart at 0",
"cssclass": "icon-refresh",
"priority": "preferred"
},
{
"key": "timer.stop",
"implementation": StopTimerAction,
"depends": [
"now"
],
"category": "contextual",
"name": "Stop",
"cssclass": "icon-box",
"priority": "preferred"
}
],
"types": [