mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 09:51:57 -04:00
'Start/Stop tracking' on issues#show
This commit is contained in:
@@ -60,7 +60,9 @@ class StopwatchTimersController < StopwatchController
|
||||
|
||||
def stop
|
||||
r = Stopwatch::StopTimer.new.call
|
||||
unless r.success?
|
||||
if r.success?
|
||||
@stopped_time_entry = @time_entry
|
||||
else
|
||||
logger.error "unable to stop timer"
|
||||
end
|
||||
new unless params[:context]
|
||||
|
||||
Reference in New Issue
Block a user