Add confirmation screen when handling reports (#22375)
* Add confirmation screen on moderation actions * Add flash notice when a report has been processed * Refactor tests * Add tests
This commit is contained in:
parent
4b92e59f4f
commit
343e1fe8e9
9 changed files with 240 additions and 29 deletions
|
@ -310,7 +310,11 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :reports, only: [:index, :show] do
|
||||
resources :actions, only: [:create], controller: 'reports/actions'
|
||||
resources :actions, only: [:create], controller: 'reports/actions' do
|
||||
collection do
|
||||
post :preview
|
||||
end
|
||||
end
|
||||
|
||||
member do
|
||||
post :assign_to_self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue