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
Only generate turbo response when turbo is requested
Klaus Zanders56f3c5a29e85
diff --git a/app/controllers/projects/queries_controller.rb b/app/controllers/projects/queries_controller.rbindex dda92b67683..780559dd2ae 100644--- a/app/controllers/projects/queries_controller.rb+++ b/app/controllers/projects/queries_controller.rb@@ -80,12 +80,15 @@ class Projects::QueriesController < ApplicationController.new(user: current_user, model: @query).call(public: to_be_public)- # Load shares and replace the modal- strategy = SharingStrategies::ProjectQueryStrategy.new(@query, user: current_user)- shares = strategy.shares_query({}).results- replace_via_turbo_stream(component: Shares::ModalBodyComponent.new(strategy:, shares:, errors: []))+ respond_to do |format|+ format.turbo_stream do+ # Load shares and replace the modal+ strategy = SharingStrategies::ProjectQueryStrategy.new(@query, user: current_user)+ shares = strategy.shares_query({}).results+ replace_via_turbo_stream(component: Shares::ModalBodyComponent.new(strategy:, shares:, errors: []))+ render turbo_stream: turbo_streams, status:+ end- respond_with_turbo_streams do |format|format.html dorender_result(call, success_i18n_key: "#{i18n_key}.success", error_i18n_key: "#{i18n_key}.failure")end