Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

do not show the plus button for the month list view

Klaus Zanderscf7fd88e2aef
diff --git a/modules/costs/app/components/my/time_tracking/daily_entries_table.rb b/modules/costs/app/components/my/time_tracking/daily_entries_table.rb
index 8c6f9d80c56..903e285751f 100644
--- a/modules/costs/app/components/my/time_tracking/daily_entries_table.rb
+++ b/modules/costs/app/components/my/time_tracking/daily_entries_table.rb
@@ -45,6 +45,8 @@ module My
def has_actions? = true
def action_row_header_content
+ return if options[:mode] == :month
+
render(Primer::Beta::IconButton.new(
icon: "plus",
scheme: :invisible,
diff --git a/modules/costs/app/components/my/time_tracking/list_component.html.erb b/modules/costs/app/components/my/time_tracking/list_component.html.erb
index 34ac3c07df1..49f20518569 100644
--- a/modules/costs/app/components/my/time_tracking/list_component.html.erb
+++ b/modules/costs/app/components/my/time_tracking/list_component.html.erb
@@ -2,7 +2,7 @@
<%= render(My::TimeTracking::HeaderComponent.new(mode:, date:, view_mode: :list)) %>
<%= render(Primer::OpenProject::SubHeader.new) do |component|
component.with_filter_component do
- render(My::TimeTracking::ModeSwitcherComponent.new(current_mode: mode, view_mode: :calendar))
+ render(My::TimeTracking::ModeSwitcherComponent.new(current_mode: mode, view_mode: :list))
end
component.with_text { title }