Stick with turbo stream templates for everything
This commit is contained in:
@@ -3,7 +3,5 @@ class Columns::Cards::Drops::ClosuresController < ApplicationController
|
||||
|
||||
def create
|
||||
@card.close
|
||||
|
||||
render turbo_stream: turbo_stream.replace("closed-cards", partial: "collections/show/closed", method: :morph, locals: { collection: @card.collection })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,5 @@ class Columns::Cards::Drops::NotNowsController < ApplicationController
|
||||
|
||||
def create
|
||||
@card.postpone
|
||||
|
||||
render turbo_stream: turbo_stream.replace("not-now", partial: "collections/show/not_now", method: :morph, locals: { collection: @card.collection })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,7 +4,5 @@ class Columns::Cards::Drops::StreamsController < ApplicationController
|
||||
def create
|
||||
@card.send_back_to_triage
|
||||
set_page_and_extract_portion_from @collection.cards.awaiting_triage.latest.with_golden_first
|
||||
|
||||
render turbo_stream: turbo_stream.replace("the-stream", partial: "collections/show/stream", method: :morph, locals: { collection: @card.collection, page: @page })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<%= turbo_stream.replace("closed-cards", partial: "collections/show/closed", method: :morph, locals: { collection: @card.collection }) %>
|
||||
@@ -0,0 +1 @@
|
||||
<%= turbo_stream.replace("not-now", partial: "collections/show/not_now", method: :morph, locals: { collection: @card.collection }) %>
|
||||
@@ -0,0 +1 @@
|
||||
<%= turbo_stream.replace("the-stream", partial: "collections/show/stream", method: :morph, locals: { collection: @card.collection, page: @page }) %>
|
||||
Reference in New Issue
Block a user