mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 09:51:57 -04:00
plugin config - default activity setting
- this can be set to make the new 'Start tracking for issue' function a one click operation
This commit is contained in:
4
init.rb
4
init.rb
@@ -1,3 +1,4 @@
|
||||
require_dependency 'stopwatch'
|
||||
require 'stopwatch/hooks'
|
||||
|
||||
Redmine::Plugin.register :stopwatch do
|
||||
@@ -8,6 +9,9 @@ Redmine::Plugin.register :stopwatch do
|
||||
version '0.1.0'
|
||||
|
||||
requires_redmine version_or_higher: '3.4.0'
|
||||
settings default: {
|
||||
'default_activity' => 'always_ask',
|
||||
}, partial: 'stopwatch/settings'
|
||||
|
||||
menu :account_menu, :stopwatch,
|
||||
:new_stopwatch_timer_path,
|
||||
|
||||
Reference in New Issue
Block a user