Skip to content

Commit 73425c2

Browse files
authored
chore: move media library menu entry (#3637)
* chore: move media library menu entry * wip potatoes
1 parent aa56517 commit 73425c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/components/avo/sidebar_component.html.erb

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
<div class="space-y-6 mb-4">
1313
<%= render Avo::Sidebar::LinkComponent.new label: 'Get started', path: helpers.avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %>
1414

15-
<%= render Avo::Sidebar::LinkComponent.new label: 'Media Library', path: helpers.avo.media_library_index_path, active: :exclusive if Avo::MediaLibrary.configuration.visible? %>
16-
1715
<% if Avo.plugin_manager.installed?(:avo_menu) && Avo.has_main_menu? %>
1816
<% Avo.main_menu.items.each do |item| %>
1917
<%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %>
@@ -53,6 +51,10 @@
5351
</div>
5452
</div>
5553
<% end %>
54+
55+
<% if Avo::MediaLibrary.configuration.visible? %>
56+
<%= render Avo::Sidebar::LinkComponent.new label: 'Media Library', path: helpers.avo.media_library_index_path, active: :exclusive %>
57+
<% end %>
5658
<% end %>
5759

5860
<%= render partial: "/avo/partials/sidebar_extra" %>

0 commit comments

Comments
 (0)