mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Add notifications to setting update
This commit is contained in:
parent
18c7c2f374
commit
eedbc211b5
2 changed files with 6 additions and 1 deletions
|
@ -10,8 +10,10 @@ class Admin::SettingGroupsController < ApplicationController
|
|||
|
||||
def update
|
||||
if @setting_group.update(setting_group_params)
|
||||
flash[:notice] = I18n.t('shared.setting_updated')
|
||||
redirect_to [:admin, @setting_group]
|
||||
else
|
||||
flash[:alert] = I18n.t('shared.failed_to_update_setting')
|
||||
render 'show'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -272,4 +272,7 @@ en:
|
|||
failed_to_update_contact: 'Failed to update contact'
|
||||
contact_updated: 'Contact updated'
|
||||
search: 'Search'
|
||||
reg_no: 'Reg no.'
|
||||
reg_no: 'Reg. no'
|
||||
setting_updated: 'Setting updated!'
|
||||
failed_to_update_setting: 'Failed to update setting'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue