app/views/avo/sidebar/_sidebar.html.erb in avo-1.16.2 vs app/views/avo/sidebar/_sidebar.html.erb in avo-1.16.3
- old
+ new
@@ -9,11 +9,11 @@
<%= render Avo::NavigationLinkComponent.new label: 'Get started', path: avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %>
<%= render Avo::NavigationHeadingComponent.new label: t('avo.resources') %>
<div class="w-full">
- <% Avo::App.resources_navigation(_current_user).each do |resource| %>
- <%= render Avo::NavigationLinkComponent.new label: resource.plural_name.humanize, path: resources_path(resource.model_class) %>
+ <% Avo::App.resources_navigation(_current_user).sort_by { |r| r.navigation_label }.each do |resource| %>
+ <%= render Avo::NavigationLinkComponent.new label: resource.navigation_label, path: resources_path(resource.model_class) %>
<% end %>
<% sidebar_partials = Avo::App.get_sidebar_partials %>
<% if sidebar_partials.present? %>
<%= render Avo::NavigationHeadingComponent.new label: t('avo.tools') %>