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:
Jens Kraemer
2021-10-05 04:35:34 +08:00
parent d32845cc6e
commit bd6711a59f
4 changed files with 120 additions and 0 deletions

View File

@@ -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,