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

Fix context menu for list view in month mode

Klaus Zandersff6c8d56f31f
diff --git a/modules/costs/app/components/my/time_tracking/time_entries_list_component.rb b/modules/costs/app/components/my/time_tracking/time_entries_list_component.rb
index bda212fc0c1..9cbf0e7cb85 100644
--- a/modules/costs/app/components/my/time_tracking/time_entries_list_component.rb
+++ b/modules/costs/app/components/my/time_tracking/time_entries_list_component.rb
@@ -44,10 +44,13 @@ module My
end
def has_actions?
- can_create_time_entry? && options[:mode] != :month
+ true
end
def action_row_header_content
+ return unless can_create_time_entry?
+ return if options[:mode] == :month
+
render(Primer::Beta::IconButton.new(
icon: "plus",
scheme: :invisible,