Redirect to bubble after staging
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user