Move bubble recovery out from double nesting

This commit is contained in:
David Heinemeier Hansson
2025-04-07 13:57:00 +02:00
parent 481be72162
commit 3b32b40264
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<div class="fill-selected position-sticky flex align-center gap-half justify-center border-block margin-block-end"
style="view-transition-name: draft-banner; --bubble-color: <%= @bubble.color %>;">
You have an unsaved work. Would you like to continue where you left off?
<%= button_to bucket_bubble_recover_path(@bubble.bucket, @bubble), class: "btn btn--reversed", data: { turbo_action: "replace" } do %>
<%= button_to bubble_recover_path(@bubble), class: "btn btn--reversed", data: { turbo_action: "replace" } do %>
<span>Restore</span>
<% end %>
</div>
+1 -1
View File
@@ -14,6 +14,7 @@ Rails.application.routes.draw do
resource :pin
resource :pop
resource :publish
resource :recover
resource :watch
resources :assignments
@@ -51,7 +52,6 @@ Rails.application.routes.draw do
resource :readings, only: :create
scope module: :bubbles do
resource :recover
resources :stagings
end
end