mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-08-19 14:50:44 -04:00
Disabled contex menu patch & bumped required version
This commit is contained in:
@@ -5,7 +5,7 @@ Redmine::Plugin.register :stopwatch do
|
|||||||
description "Start/stop timer and quick access to today's time bookings for Redmine"
|
description "Start/stop timer and quick access to today's time bookings for Redmine"
|
||||||
version '1.1.0'
|
version '1.1.0'
|
||||||
|
|
||||||
requires_redmine version_or_higher: '6.0.0'
|
requires_redmine version_or_higher: '7.0.0'
|
||||||
settings default: {
|
settings default: {
|
||||||
'default_activity' => 'always_ask',
|
'default_activity' => 'always_ask',
|
||||||
}, partial: 'stopwatch/settings'
|
}, partial: 'stopwatch/settings'
|
||||||
@@ -18,6 +18,4 @@ Redmine::Plugin.register :stopwatch do
|
|||||||
if: ->(*_){ User.current.logged? and User.current.allowed_to?(:log_time, nil, global: true) }
|
if: ->(*_){ User.current.logged? and User.current.allowed_to?(:log_time, nil, global: true) }
|
||||||
end
|
end
|
||||||
|
|
||||||
Rails.application.config.to_prepare do
|
Stopwatch.setup
|
||||||
Stopwatch.setup
|
|
||||||
end
|
|
||||||
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
module Stopwatch
|
module Stopwatch
|
||||||
def self.setup
|
def self.setup
|
||||||
Stopwatch::ContextMenusControllerPatch.apply
|
log "Setup"
|
||||||
|
#Stopwatch::ContextMenusControllerPatch.apply
|
||||||
Stopwatch::IssuesControllerPatch.apply
|
Stopwatch::IssuesControllerPatch.apply
|
||||||
::TimeEntry.prepend Stopwatch::TimeEntryPatch
|
::TimeEntry.prepend Stopwatch::TimeEntryPatch
|
||||||
::User.prepend Stopwatch::UserPatch
|
::User.prepend Stopwatch::UserPatch
|
||||||
|
|||||||
Reference in New Issue
Block a user