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

Fix missing title param in CF Hierarchy delete dialog

Alexander Brandon Coles9f2ec4b93ac2
diff --git a/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb b/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb
index 1fcb44cdad9..f9735c0fe9e 100644
--- a/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb
+++ b/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb
@@ -29,12 +29,13 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Primer::OpenProject::DangerDialog.new(
- form_arguments:,
- size: :large,
- test_selector: TEST_SELECTOR
- )) do |dialog|
+ title: I18n.t("custom_fields.admin.items.delete_dialog.title"),
+ form_arguments:,
+ size: :large,
+ test_selector: TEST_SELECTOR
+ )) do |dialog|
dialog.with_confirmation_message do |message|
- message.with_heading(tag: :h2) { I18n.t("custom_fields.admin.items.delete_dialog.title") }
+ message.with_heading(tag: :h2) { I18n.t("custom_fields.admin.items.delete_dialog.heading") }
message.with_description_content(I18n.t("custom_fields.admin.items.delete_dialog.description"))
end
dialog.with_confirmation_check_box_content(I18n.t(:text_permanent_delete_confirmation_checkbox_label))
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c224ecc1cfb..966345b0ca9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -254,6 +254,7 @@ en:
description: Add items to this list to create sub-items inside another one
delete_dialog:
title: "Delete custom field item"
+ heading: "Delete custom field item?"
description: "This action will irreversibly remove the item and all its sub-items. Any assigned values will be permanently deleted. If this field is required, removing items may cause existing work packages to become invalid."
placeholder:
label: "Item label"