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
|
@ -15,7 +15,7 @@ class Admin::Trends::StatusesController < Admin::BaseController
|
|||
@form = Trends::StatusBatch.new(trends_status_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.trends.statuses.no_status_selected')
|
||||
ensure
|
||||
redirect_to admin_trends_statuses_path(filter_params)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue