Set up proper response codes for Turbo Stream responses

This commit is contained in:
Andreas Nedbal 2022-09-08 00:55:10 +02:00 committed by Andreas Nedbal
parent 1ac6475fb2
commit 3074ce3bbe
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class InboxController < ApplicationController
@disabled = true if @inbox.empty? @disabled = true if @inbox.empty?
respond_to do |format| respond_to do |format|
format.html format.html
format.turbo_stream format.turbo_stream { render "show", layout: false, status: :see_other }
end end
end end
end end

View File

@ -12,7 +12,7 @@ class Moderation::InboxController < ApplicationController
respond_to do |format| respond_to do |format|
format.html format.html
format.turbo_stream format.turbo_stream { render "index", layout: false, status: :see_other }
end end
end end
end end

View File

@ -11,7 +11,7 @@ class Moderation::ReportsController < ApplicationController
respond_to do |format| respond_to do |format|
format.html format.html
format.turbo_stream format.turbo_stream { render "index", layout: false, status: :see_other }
end end
end end