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

Correctly check for action

Klaus Zanders503cf37f9255
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 79b68527690..bda212fc0c1 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,13 +44,10 @@ module My
end
def has_actions?
- can_create_time_entry? || options[:mode] != :month
+ can_create_time_entry? && options[:mode] != :month
end
def action_row_header_content
- return if options[:mode] == :month
- return unless can_create_time_entry?
-
render(Primer::Beta::IconButton.new(
icon: "plus",
scheme: :invisible,