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

[#67722] hide segmented control and checkbox

Eric Schubert4c15fba1da80
diff --git a/app/components/admin/custom_fields/hierarchy/change_item_parent_dialog_component.html.erb b/app/components/admin/custom_fields/hierarchy/change_item_parent_dialog_component.html.erb
index dc43525e528..418c9eb671f 100644
--- a/app/components/admin/custom_fields/hierarchy/change_item_parent_dialog_component.html.erb
+++ b/app/components/admin/custom_fields/hierarchy/change_item_parent_dialog_component.html.erb
@@ -38,7 +38,11 @@ See COPYRIGHT and LICENSE files for more details.
dialog.with_body do
primer_form_with(**form_arguments) do |form|
render(
- Primer::OpenProject::FilterableTreeView.new(form_arguments: { builder: form, name: :new_parent })
+ Primer::OpenProject::FilterableTreeView.new(
+ form_arguments: { builder: form, name: :new_parent },
+ include_sub_items_check_box_arguments: { hidden: true },
+ filter_mode_control_arguments: { hidden: true }
+ )
) do |tree_view|
add_sub_tree(tree_view, hierarchy_items)
end