Skip to content

Do not display anchor if admin submenu has no children#15933

Merged
magento-engcom-team merged 1 commit intomagento:2.1-developfrom
rogyar:2.1-empty-anchors-fix
Jun 11, 2018
Merged

Do not display anchor if admin submenu has no children#15933
magento-engcom-team merged 1 commit intomagento:2.1-developfrom
rogyar:2.1-empty-anchors-fix

Conversation

@rogyar
Copy link
Copy Markdown
Contributor

@rogyar rogyar commented Jun 7, 2018

Description

In the admin panel if some submenu has no items it's still shown in the menu. Out of the box, we have "Other Settings" submenu in the "Stores" menu which is empty and looks not very good.
The fix prevents rendering submenus with no items (the same behavior we have within a scope of versions 2.2 and 2.3)

Manual testing scenarios

Preconditions: Magento 2.1.x

  1. Go to admin panel
  2. Open "Stores" menu item

Expected behavior

There are no empty submenus

Actual behavior

There's an empty "Other Settings" submenu item with "dimmed" title.

screen shot 2018-06-07 at 14 26 47

@magento-engcom-team
Copy link
Copy Markdown
Contributor

Hi @rogyar. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.1.15 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Backend Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants