Redirect to bubble after staging

This commit is contained in:
Jose Farias
2024-10-23 17:32:34 -06:00
parent 398baed6a6
commit 973fd0a73d
2 changed files with 3 additions and 2 deletions
@@ -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
+2 -1
View File
@@ -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