From a64898356e62a39b958bf781d04a66c77e89288d Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 22 Jun 2021 18:57:06 +0800 Subject: [PATCH] Update sidebar order and icon. --- lib/custom_gallery/engine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom_gallery/engine.rb b/lib/custom_gallery/engine.rb index 01af13e..a214a41 100644 --- a/lib/custom_gallery/engine.rb +++ b/lib/custom_gallery/engine.rb @@ -44,14 +44,14 @@ module CustomGallery authorizable frontend_enabled data_count 1..30 - begin show_option_items data rescue => e puts ['there_was_no_show_option_method',e] end side_bar do - head_label_i18n 'custom_gallery.custom_gallery', icon_class: "icons-pictures" + set_sidebar_order(100) rescue nil + head_label_i18n 'custom_gallery.custom_gallery', icon_class: "fa fa-file-image-o" available_for "users" active_for_controllers (['admin/custom_galleries','admin/images']) head_link_path "admin_custom_galleries_path"