Add batch approve/reject for pending hashtags in admin UI (#11791)
This commit is contained in:
parent
3feacd2b14
commit
261e52268c
7 changed files with 142 additions and 19 deletions
|
@ -727,6 +727,7 @@ en:
|
|||
all: All
|
||||
changes_saved_msg: Changes successfully saved!
|
||||
copy: Copy
|
||||
no_batch_actions_available: No batch actions available on this page
|
||||
order_by: Order by
|
||||
save_changes: Save changes
|
||||
validation_errors:
|
||||
|
|
|
@ -251,7 +251,14 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :account_moderation_notes, only: [:create, :destroy]
|
||||
resources :tags, only: [:index, :show, :update]
|
||||
|
||||
resources :tags, only: [:index, :show, :update] do
|
||||
collection do
|
||||
post :approve_all
|
||||
post :reject_all
|
||||
post :batch
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
get '/admin', to: redirect('/admin/dashboard', status: 302)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue