Add batch actions and categories to admin UI for custom emojis (#11793)
This commit is contained in:
parent
14d4a783cd
commit
1110ea1a91
11 changed files with 281 additions and 176 deletions
|
@ -225,10 +225,12 @@ en:
|
|||
deleted_status: "(deleted status)"
|
||||
title: Audit log
|
||||
custom_emojis:
|
||||
assign_category: Assign category
|
||||
by_domain: Domain
|
||||
copied_msg: Successfully created local copy of the emoji
|
||||
copy: Copy
|
||||
copy_failed_msg: Could not make a local copy of that emoji
|
||||
create_new_category: Create new category
|
||||
created_msg: Emoji successfully created!
|
||||
delete: Delete
|
||||
destroyed_msg: Emojo successfully destroyed!
|
||||
|
@ -245,6 +247,7 @@ en:
|
|||
shortcode: Shortcode
|
||||
shortcode_hint: At least 2 characters, only alphanumeric characters and underscores
|
||||
title: Custom emojis
|
||||
uncategorized: Uncategorized
|
||||
unlisted: Unlisted
|
||||
update_failed_msg: Could not update that emoji
|
||||
updated_msg: Emoji successfully updated!
|
||||
|
|
|
@ -242,11 +242,9 @@ Rails.application.routes.draw do
|
|||
resource :two_factor_authentication, only: [:destroy]
|
||||
end
|
||||
|
||||
resources :custom_emojis, only: [:index, :new, :create, :update, :destroy] do
|
||||
member do
|
||||
post :copy
|
||||
post :enable
|
||||
post :disable
|
||||
resources :custom_emojis, only: [:index, :new, :create] do
|
||||
collection do
|
||||
post :batch
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue