diff --git a/app/controllers/admin/setting_groups_controller.rb b/app/controllers/admin/setting_groups_controller.rb index 092aaa8be..cda66ca64 100644 --- a/app/controllers/admin/setting_groups_controller.rb +++ b/app/controllers/admin/setting_groups_controller.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index f8b80f88b..03b830a36 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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' +