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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
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.erbindex 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.rbindex 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 < ApplicationComponentinclude ApplicationHelperinclude OpPrimer::ComponentHelpers- attr_reader :work_package, :relation, :child+ attr_reader :work_package, :relation, :child, :visibilitydef initialize(work_package:,relation:,+ visibility:,child: nil)super()@work_package = work_package@relation = relation+ @visibility = visibility@child = childend