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 string definition in projects list

Behrokh Satarnejad991be148a175
diff --git a/app/components/projects/index_page_header_component.rb b/app/components/projects/index_page_header_component.rb
index 739d76ff509..a6e327dd348 100644
--- a/app/components/projects/index_page_header_component.rb
+++ b/app/components/projects/index_page_header_component.rb
@@ -37,8 +37,6 @@ class Projects::IndexPageHeaderComponent < ApplicationComponent
:state,
:params
- BUTTON_MARGIN_RIGHT = 2
-
STATE_DEFAULT = :show
STATE_EDIT = :edit
STATE_OPTIONS = [STATE_DEFAULT, STATE_EDIT].freeze
@@ -69,6 +67,7 @@ class Projects::IndexPageHeaderComponent < ApplicationComponent
def page_title
query.name || t(:label_project_plural)
end
+
def query_saveable?
current_user.logged? && query.name.blank?
end
@@ -78,6 +77,6 @@ class Projects::IndexPageHeaderComponent < ApplicationComponent
end
def breadcrumb_items
- [{ href: projects_path, text: t("en.types.edit.projects") }, page_title]
+ [{ href: projects_path, text: t(:label_project_plural) }, page_title]
end
end