Skip to content

Commit

Permalink
use gem name as plugin for avo-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Feb 19, 2025
1 parent 2a98a3e commit 8d4504a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/avo/sidebar_profile_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
data-transition-leave-start="transform opacity-100 translate-y-0"
data-transition-leave-end="transform opacity-0 translate-y-3"
>
<% if Avo.plugin_manager.installed?(:avo_menu) && Avo.has_profile_menu? %>
<% if Avo.plugin_manager.installed?("avo-menu") && Avo.has_profile_menu? %>
<div class="text-black space-y-4">
<% Avo.profile_menu.items.each do |item| %>
<% if item.is_a? Avo::Menu::Link %>
Expand Down
4 changes: 2 additions & 2 deletions lib/avo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def root_path(paths: [], query: {}, **args)
end

def main_menu
return unless Avo.plugin_manager.installed?(:avo_menu)
return unless Avo.plugin_manager.installed?("avo-menu")

# Return empty menu if the app doesn't have the profile menu configured
return Avo::Menu::Builder.new.build unless has_main_menu?
Expand All @@ -104,7 +104,7 @@ def main_menu
end

def profile_menu
return unless Avo.plugin_manager.installed?(:avo_menu)
return unless Avo.plugin_manager.installed?("avo-menu")

# Return empty menu if the app doesn't have the profile menu configured
return Avo::Menu::Builder.new.build unless has_profile_menu?
Expand Down

0 comments on commit 8d4504a

Please sign in to comment.