From 973fd0a73dc3037bd2504e4bbee0a77f3c576800 Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Wed, 23 Oct 2024 17:32:34 -0600 Subject: [PATCH] Redirect to bubble after staging --- app/controllers/bubbles/stagings_controller.rb | 2 +- app/helpers/workflows_helper.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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