Skip to content

Commit 42a46fa

Browse files
committed
Change menu item in admin menu
The menu item of CustomMessageSettingsController#edit page is now highlighted as soon as the user selects the respective item. This behavior is now consistent with all other menu items of the admin menu in the sidebar of the admin page.
1 parent 620a060 commit 42a46fa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/controllers/custom_message_settings_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class CustomMessageSettingsController < ApplicationController
22
layout 'admin'
3+
menu_item :custom_messages
34
before_action :require_admin, :set_custom_message_setting, :set_lang
45
require_sudo_mode :edit, :update, :toggle_enabled, :default_messages
56

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Add german translations
66
* Change reordered loading of locales to be conditional
7+
* Change admin menu item of custom message settings to be highlighted when selected
78

89
## v0.1.0
910

0 commit comments

Comments
 (0)