Skip to content

Commit 84dc0bb

Browse files
committed
chore: makes generate report button asks for html format
1 parent f762ef7 commit 84dc0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/reports/_total_time/_filters.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<%= t(".generate_report_csv") %>
5858
<% end %>
5959

60-
<%= f.button t(".generate_report"), class: "btn-primary" %>
60+
<%= f.button t(".generate_report"), onclick: "document.querySelector('.js-filter-form').action = '#{total_time_reports_path(format: :html)}'", class: "btn-primary" %>
6161
</div>
6262
</div>
6363
<% end %>

0 commit comments

Comments
 (0)