Skip to content

Commit

Permalink
[OP#57901] Remove feature flag for custom fields multi-projects mgmt (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru authored Sep 20, 2024
1 parent ac322ef commit 39a1a75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
14 changes: 1 addition & 13 deletions app/views/custom_fields/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,7 @@ See COPYRIGHT and LICENSE files for more details.

<% html_title t(:label_administration), "#{t(:label_edit)} #{CustomField.model_name.human} #{h @custom_field.name}" %>

<% if OpenProject::FeatureDecisions.enable_custom_field_for_multiple_projects_active? %>
<%= render(Admin::CustomFields::EditFormHeaderComponent.new(custom_field: @custom_field, selected: :edit)) %>
<% else %>
<%=
render(Primer::OpenProject::PageHeader.new(test_selector: "custom-fields--page-header")) do |header|
header.with_title { @custom_field.name }
header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },
{ href: custom_fields_path, text: t(:label_custom_field_plural) },
{ href: custom_fields_path(tab: @custom_field.type), text: I18n.t(@custom_field.type_name) },
@custom_field.name])
end
%>
<% end %>
<%= render(Admin::CustomFields::EditFormHeaderComponent.new(custom_field: @custom_field, selected: :edit)) %>

<%= error_messages_for 'custom_field' %>

Expand Down
4 changes: 0 additions & 4 deletions config/initializers/feature_decisions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,5 @@
description: "Allow flash messages to notify users about concurrent meeting edits. " \
"See work package #54744 for more details."

OpenProject::FeatureDecisions.add :enable_custom_field_for_multiple_projects,
description: "Allow a custom field to be enabled for multiple projects at once. " \
"See work package #56909 for more details."

OpenProject::FeatureDecisions.add :built_in_oauth_applications,
description: "Allows the display and use of built-in OAuth applications."

0 comments on commit 39a1a75

Please sign in to comment.