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
[#57505] Turn project list into favorite without reloading the page
Dombi Attila6623d38d74c6
diff --git a/app/components/projects/row_component.rb b/app/components/projects/row_component.rbindex da409c4e0a5..70adc2566d7 100644--- a/app/components/projects/row_component.rb+++ b/app/components/projects/row_component.rb@@ -54,7 +54,7 @@ module Projectstag: :a,tooltip_direction: :e,href: helpers.build_favorite_path(project, format: :html),- data: { method: currently_favored? ? :delete : :post },+ data: { "turbo-method": currently_favored? ? :delete : :post },classes: currently_favored? ? "op-primer--star-icon " : "op-project-row-component--favorite",label: currently_favored? ? I18n.t(:button_unfavorite) : I18n.t(:button_favorite),aria: { label: currently_favored? ? I18n.t(:button_unfavorite) : I18n.t(:button_favorite) },@@ -259,7 +259,7 @@ module Projectsscheme: :default,icon: "star",href: helpers.build_favorite_path(project, format: :html),- data: { method: :post },+ data: { "turbo-method": :post },label: I18n.t(:button_favorite),aria: { label: I18n.t(:button_favorite) }}@@ -273,7 +273,7 @@ module Projectsicon: "star-fill",size: :medium,href: helpers.build_favorite_path(project, format: :html),- data: { method: :delete },+ data: { "turbo-method": :delete },classes: "op-primer--star-icon",label: I18n.t(:button_unfavorite),aria: { label: I18n.t(:button_unfavorite) }