Skip to content

Commit

Permalink
Change menu item in admin menu
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
liaham committed Jan 16, 2021
1 parent 620a060 commit 42a46fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/custom_message_settings_controller.rb
@@ -1,5 +1,6 @@
class CustomMessageSettingsController < ApplicationController
layout 'admin'
menu_item :custom_messages
before_action :require_admin, :set_custom_message_setting, :set_lang
require_sudo_mode :edit, :update, :toggle_enabled, :default_messages

Expand Down
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -4,6 +4,7 @@

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

## v0.1.0

Expand Down

0 comments on commit 42a46fa

Please sign in to comment.