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
Correctly pass all arguments for render calls
Klaus Zandersb4927ccac692
diff --git a/app/controllers/shares_controller.rb b/app/controllers/shares_controller.rbindex 33b8e967296..e7706b0c3d9 100644--- a/app/controllers/shares_controller.rb+++ b/app/controllers/shares_controller.rb@@ -154,10 +154,8 @@ class SharesController < ApplicationControllerdef respond_with_replace_modalreplace_via_turbo_stream(component: Shares::ModalBodyComponent.new(- entity: @entity,- available_roles: sharing_strategy.available_roles,+ strategy: sharing_strategy,shares: @new_shares || load_shares,- sharing_manageable: sharing_strategy.manageable?,errors: @errors))@@ -165,21 +163,18 @@ class SharesController < ApplicationControllerrespond_with_turbo_streamsend- def respond_with_prepend_shares # rubocop:disable Metrics/AbcSize+ def respond_with_prepend_sharesreplace_via_turbo_stream(component: Shares::InviteUserFormComponent.new(- entity: @entity,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?,+ strategy: sharing_strategy,errors: @errors))update_via_turbo_stream(component: Shares::CounterComponent.new(- entity: @entity,- count: current_visible_member_count,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy,+ count: current_visible_member_count))@@ -187,13 +182,10 @@ class SharesController < ApplicationControllerprepend_via_turbo_stream(component: Shares::ShareRowComponent.new(share:,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy),target_component: Shares::ModalBodyComponent.new(- entity: @entity,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?,+ strategy: sharing_strategy,shares: load_shares,errors: @errors)@@ -206,9 +198,7 @@ class SharesController < ApplicationControllerdef respond_with_new_invite_formreplace_via_turbo_stream(component: Shares::InviteUserFormComponent.new(- entity: @entity,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?,+ strategy: sharing_strategy,errors: @errors))@@ -232,15 +222,13 @@ class SharesController < ApplicationControllerremove_via_turbo_stream(component: Shares::ShareRowComponent.new(share: @share,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy))update_via_turbo_stream(component: Shares::CounterComponent.new(- entity: @entity,- count: current_visible_member_count,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy,+ count: current_visible_member_count))@@ -278,17 +266,15 @@ class SharesController < ApplicationControllerremove_via_turbo_stream(component: Shares::ShareRowComponent.new(share:,- available_roles: sharing_strategy.available_roles,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy))endupdate_via_turbo_stream(component: Shares::CounterComponent.new(- entity: @entity,count: current_visible_member_count,- sharing_manageable: sharing_strategy.manageable?+ strategy: sharing_strategy))