Move bubble recovery out from double nesting
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user