From 8fc0ec5abf13f6ca38240c711b4b51d11b4b03b5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 22 Jun 2021 18:56:44 +0800 Subject: [PATCH] Update sidebar order and icon. --- lib/custom_announcement/engine.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/custom_announcement/engine.rb b/lib/custom_announcement/engine.rb index cc93985..96751f2 100644 --- a/lib/custom_announcement/engine.rb +++ b/lib/custom_announcement/engine.rb @@ -96,7 +96,8 @@ module CustomAnnouncement puts ['there_was_no_show_option_method',e] end side_bar do - head_label_i18n 'custom_announcement.custom_announcement', icon_class: "icons-megaphone" + set_sidebar_order(100) rescue nil + head_label_i18n 'custom_announcement.custom_announcement', icon_class: "icon-bullhorn" available_for "users" active_for_controllers (['admin/custom_announcements']) head_link_path "admin_custom_announcements_path"