Fix admin menu when Connect feature flag is disabled (#14833)
This commit is contained in:
parent
9a5d354b65
commit
806c679540
1 changed files with 2 additions and 1 deletions
|
|
@ -21,10 +21,11 @@
|
|||
<%= inline_svg_tag(group[:svg], aria_hidden: true, class: "dropdown-icon crayons-icon") %>
|
||||
<%= display_name(group_name) %>
|
||||
</button>
|
||||
<% first_child = group[:children].detect { |child| child[:visible] } %>
|
||||
<ul id="<%= group_name %>"
|
||||
data-sidebar-target="submenu"
|
||||
class="js-menu-activator <%= deduced_scope(request) == group_name.to_s ? "collapse show" : "collapse" %>"
|
||||
data-target-href="/admin/<%= group_name %>/<%= group[:children][0][:controller] %>">
|
||||
data-target-href="/admin/<%= group_name %>/<%= first_child[:controller] %>">
|
||||
<% group[:children].each do |item| %>
|
||||
<% if item[:visible] %>
|
||||
<li>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue