Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/element index handle empty view menu #16242

Open
wants to merge 2 commits into
base: 5.x
Choose a base branch
from

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Nov 29, 2024

Description

If the element index view menu would be empty when opened (no sort options, no checkboxes to customise visible columns), disable the “View” button so that we don’t show an empty menu.
This could happen, e.g. in Commerce > Products > product when viewing variants in the cards mode, as variants can’t be custom sorted.

Before:
Screenshot 2024-11-29 at 11 18 16

After:
Screenshot 2024-11-29 at 11 18 01

Related issues

n/a (chat with Nathaniel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant