Make "No $entity selected" errors more accurate (#19356)
Previously all controllers would use the single "No accounts changed as none were selected" message. This commit changes them to read "tags", "posts", "emojis", etc. where necessary.
This commit is contained in:
parent
e02bdc14fd
commit
c618d3a0a5
6 changed files with 11 additions and 5 deletions
|
@ -34,7 +34,7 @@ module Admin
|
|||
@form = Form::CustomEmojiBatch.new(form_custom_emoji_batch_params.merge(current_account: current_account, action: action_from_button))
|
||||
@form.save
|
||||
rescue ActionController::ParameterMissing
|
||||
flash[:alert] = I18n.t('admin.accounts.no_account_selected')
|
||||
flash[:alert] = I18n.t('admin.custom_emojis.no_emoji_selected')
|
||||
rescue Mastodon::NotPermittedError
|
||||
flash[:alert] = I18n.t('admin.custom_emojis.not_permitted')
|
||||
ensure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue