Skip to content

Commit

Permalink
chore: move media library menu entry (#3637)
Browse files Browse the repository at this point in the history
* chore: move media library menu entry

* wip

potatoes
  • Loading branch information
Paul-Bob authored Feb 4, 2025
1 parent aa56517 commit 73425c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/avo/sidebar_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<div class="space-y-6 mb-4">
<%= render Avo::Sidebar::LinkComponent.new label: 'Get started', path: helpers.avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %>

<%= render Avo::Sidebar::LinkComponent.new label: 'Media Library', path: helpers.avo.media_library_index_path, active: :exclusive if Avo::MediaLibrary.configuration.visible? %>

<% if Avo.plugin_manager.installed?(:avo_menu) && Avo.has_main_menu? %>
<% Avo.main_menu.items.each do |item| %>
<%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %>
Expand Down Expand Up @@ -53,6 +51,10 @@
</div>
</div>
<% end %>

<% if Avo::MediaLibrary.configuration.visible? %>
<%= render Avo::Sidebar::LinkComponent.new label: 'Media Library', path: helpers.avo.media_library_index_path, active: :exclusive %>
<% end %>
<% end %>

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

0 comments on commit 73425c2

Please sign in to comment.