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
Fix labels and remove obsolete code
Henriette Darge57d12cdc93af
diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.rb b/app/components/settings/project_custom_fields/edit_form_header_component.rbindex 461f0a75b0a..652211fbef1 100644--- a/app/components/settings/project_custom_fields/edit_form_header_component.rb+++ b/app/components/settings/project_custom_fields/edit_form_header_component.rb@@ -30,12 +30,8 @@ module Settingsmodule ProjectCustomFieldsclass EditFormHeaderComponent < ApplicationComponentdef initialize(custom_field:, selected:)- selected = selected.to_sym- raise "selected must be one of the following: #{TAB_NAVS.join(', ')}" unless TAB_NAVS.include?(selected)-super@custom_field = custom_field- @selected = selectedenddef tabsdiff --git a/app/helpers/types_helper.rb b/app/helpers/types_helper.rbindex 6fc73f7bbb8..0d5a5a53cfa 100644--- a/app/helpers/types_helper.rb+++ b/app/helpers/types_helper.rb@@ -35,25 +35,25 @@ module ::TypesHelper{name: "settings",path: edit_tab_type_path(id: @type.id, tab: :settings),- label: "types.edit.settings.tab",+ label: I18n.t("types.edit.settings.tab"),view_component: WorkPackages::Types::SettingsComponent},{name: "form_configuration",partial: "types/form/form_configuration",path: edit_tab_type_path(id: @type.id, tab: :form_configuration),- label: "types.edit.form_configuration.tab"+ label: I18n.t("types.edit.form_configuration.tab")},{name: "projects",partial: "types/form/projects",path: edit_tab_type_path(id: @type.id, tab: :projects),- label: "types.edit.projects.tab"+ label: I18n.t("types.edit.projects.tab")},{name: "export_configuration",path: edit_tab_type_path(id: @type.id, tab: :export_configuration),- label: "types.edit.export_configuration.tab",+ label: I18n.t("types.edit.export_configuration.tab"),view_component: WorkPackages::Types::ExportConfigurationComponent}]@@ -62,7 +62,7 @@ module ::TypesHelpersubject_configuration_tab = {name: "subject_configuration",path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),- label: "types.edit.subject_configuration.tab",+ label: I18n.t("types.edit.subject_configuration.tab"),view_component: WorkPackages::Types::SubjectConfigurationComponent,enterprise_feature: :work_package_subject_generation}