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

[#55581] allow disabling the hover card

Tobias Dillmann52f64f872276
diff --git a/modules/avatars/app/helpers/avatar_helper.rb b/modules/avatars/app/helpers/avatar_helper.rb
index dfee107d79c..97f9eea7486 100644
--- a/modules/avatars/app/helpers/avatar_helper.rb
+++ b/modules/avatars/app/helpers/avatar_helper.rb
@@ -152,6 +152,9 @@ module AvatarHelper
inputs[:hoverCardModalTarget] = hover_card.fetch(:target, :default)
inputs[:hoverCardUrl] = hover_card_user_path(user.id)
+ else
+ # We must explicitly set this to false since the angular renderer defines their own default to `true`
+ inputs[:hoverCard] = false
end
inputs