mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 17:51:59 -04:00
'Start/Stop tracking' on issues#show
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
<% end %>
|
||||
|
||||
<% if @started_time_entry %>
|
||||
window.stopwatch.timerStarted('<%= @started_time_entry.id %>',
|
||||
'<%= j format_hours @started_time_entry.hours %>');
|
||||
window.stopwatch.timerStarted(
|
||||
<%= raw Stopwatch::Timer.new(User.current).to_json %>
|
||||
);
|
||||
<% else %>
|
||||
window.stopwatch.timerStopped();
|
||||
window.stopwatch.timerStopped();
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user