mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:29:54 +01:00
Set up proper response codes for Turbo Stream responses
This commit is contained in:
parent
1ac6475fb2
commit
3074ce3bbe
3 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ class InboxController < ApplicationController
|
|||
@disabled = true if @inbox.empty?
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.turbo_stream
|
||||
format.turbo_stream { render "show", layout: false, status: :see_other }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ class Moderation::InboxController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.turbo_stream
|
||||
format.turbo_stream { render "index", layout: false, status: :see_other }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ class Moderation::ReportsController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.turbo_stream
|
||||
format.turbo_stream { render "index", layout: false, status: :see_other }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue