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

add visibility for relation component

Behrokh Satarnejad4790c2d6c562
diff --git a/app/components/work_package_relations_tab/relation_component.html.erb b/app/components/work_package_relations_tab/relation_component.html.erb
index b4cdd78822b..1db77b6ecc9 100644
--- a/app/components/work_package_relations_tab/relation_component.html.erb
+++ b/app/components/work_package_relations_tab/relation_component.html.erb
@@ -1,3 +1,4 @@
+<%= @visibility %>
<%=
flex_layout do |flex|
flex.with_row(flex_layout: true, justify_content: :space_between, align_items: :center) do |row|
diff --git a/app/components/work_package_relations_tab/relation_component.rb b/app/components/work_package_relations_tab/relation_component.rb
index 5df345651d2..1d345d27077 100644
--- a/app/components/work_package_relations_tab/relation_component.rb
+++ b/app/components/work_package_relations_tab/relation_component.rb
@@ -2,15 +2,17 @@ class WorkPackageRelationsTab::RelationComponent < ApplicationComponent
include ApplicationHelper
include OpPrimer::ComponentHelpers
- attr_reader :work_package, :relation, :child
+ attr_reader :work_package, :relation, :child, :visibility
def initialize(work_package:,
relation:,
+ visibility:,
child: nil)
super()
@work_package = work_package
@relation = relation
+ @visibility = visibility
@child = child
end