diff --git a/app/controllers/bubbles/stagings_controller.rb b/app/controllers/bubbles/stagings_controller.rb index 3a17b169c..3c955a56c 100644 --- a/app/controllers/bubbles/stagings_controller.rb +++ b/app/controllers/bubbles/stagings_controller.rb @@ -3,6 +3,6 @@ class Bubbles::StagingsController < ApplicationController def create @bubble.toggle_stage Current.account.stages.find(params[:stage_id]) - redirect_to new_bucket_bubble_stage_picker_path(@bucket, @bubble) + redirect_to @bubble end end diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb index 8b040dafc..97290b205 100644 --- a/app/helpers/workflows_helper.rb +++ b/app/helpers/workflows_helper.rb @@ -5,6 +5,7 @@ module WorkflowsHelper def button_to_set_stage(bubble, stage) button_to stage.name, bucket_bubble_stagings_path(bubble.bucket, bubble, stage_id: stage), - method: :post, class: [ "btn btn--small", { "fill-selected": stage == bubble.stage } ] + method: :post, class: [ "btn btn--small", { "fill-selected": stage == bubble.stage } ], + data: { turbo_frame: "_top" } end end