adds project_id arg to 'log time' link to preselect the current project, if any.

This commit is contained in:
Jens Kraemer
2021-10-05 11:25:38 +08:00
parent a2096e3208
commit b4af7e0eb3
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<% if User.current.logged? %>
window.stopwatch.highlightRunningTimer(
<%= raw Stopwatch::Timer.new(User.current).to_json %>
)
);
window.stopwatch.setProjectId('<%= j @project&.id.to_s %>');
<% end %>
<% end %>