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
Showing
- app/controllers/admin/account_actions_controller.rb 1 addition, 1 deletionapp/controllers/admin/account_actions_controller.rb
- app/controllers/admin/reports/actions_controller.rb 14 additions, 3 deletionsapp/controllers/admin/reports/actions_controller.rb
- app/models/admin/status_batch_action.rb 6 additions, 3 deletionsapp/models/admin/status_batch_action.rb
- app/views/admin/reports/_actions.html.haml 1 addition, 1 deletionapp/views/admin/reports/_actions.html.haml
- app/views/admin/reports/actions/preview.html.haml 78 additions, 0 deletionsapp/views/admin/reports/actions/preview.html.haml
- config/i18n-tasks.yml 2 additions, 0 deletionsconfig/i18n-tasks.yml
- config/locales/en.yml 21 additions, 0 deletionsconfig/locales/en.yml
- config/routes.rb 5 additions, 1 deletionconfig/routes.rb
- spec/controllers/admin/reports/actions_controller_spec.rb 110 additions, 18 deletionsspec/controllers/admin/reports/actions_controller_spec.rb
Loading
Please register or sign in to comment