mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 02:33:21 +00:00
Set flash options via redirect where possible (#35370)
This commit is contained in:
parent
67be8208db
commit
5c01ccc31f
5 changed files with 7 additions and 14 deletions
|
|
@ -14,8 +14,7 @@ module Admin
|
|||
@admin_settings = Form::AdminSettings.new(settings_params)
|
||||
|
||||
if @admin_settings.save
|
||||
flash[:notice] = I18n.t('generic.changes_saved_msg')
|
||||
redirect_to after_update_redirect_path
|
||||
redirect_to after_update_redirect_path, notice: t('generic.changes_saved_msg')
|
||||
else
|
||||
render :show
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue