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
[#55196] Wrong menu entry when deactivating a project attribute (not "Delete")
Kabiru Mwenja0e10a1d47040
diff --git a/app/components/projects/row_component.rb b/app/components/projects/row_component.rbindex 6dd80c99c2c..695a210683c 100644--- a/app/components/projects/row_component.rb+++ b/app/components/projects/row_component.rb@@ -227,7 +227,7 @@ module Projectslabel:,test_selector: "project-list-row--action-menu-item",content_arguments: button_options) do |item|- item.with_leading_visual_icon(icon:)+ item.with_leading_visual_icon(icon:) if iconendendenddiff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rbindex 0d346fe4659..b7065bee591 100644--- a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb+++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb@@ -45,9 +45,9 @@ module Settingsdef more_menu_detach_projectif User.current.admin{- scheme: :danger,- icon: :trash,- label: I18n.t(:button_delete),+ scheme: :default,+ icon: nil,+ label: I18n.t("projects.settings.project_custom_fields.actions.deactivate_for_project"),href: unlink_admin_settings_project_custom_field_path(id: @table.params[:custom_field].id,project_custom_field_project_mapping: { project_id: model.first.id }diff --git a/config/locales/en.yml b/config/locales/en.ymlindex e83f4cdbcde..25630f88bbc 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -326,6 +326,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}actions:label_enable_single: "Active in this project, click to disable"label_disable_single: "Inactive in this project, click to enable"+ deactivate_for_project: "Deactivate for this project"label_enable_all: "Enable all"label_disable_all: "Disable all"types: