Skip to content

Bugfix/element index handle empty view menu#16242

Merged
brandonkelly merged 4 commits into5.xfrom
bugfix/element-index-handle-empty-view-menu
Dec 2, 2024
Merged

Bugfix/element index handle empty view menu#16242
brandonkelly merged 4 commits into5.xfrom
bugfix/element-index-handle-empty-view-menu

Conversation

@i-just
Copy link
Copy Markdown
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)

@i-just i-just requested a review from brandonkelly November 29, 2024 11:22
@brandonkelly brandonkelly merged commit 3b9c187 into 5.x Dec 2, 2024
@brandonkelly brandonkelly deleted the bugfix/element-index-handle-empty-view-menu branch December 2, 2024 17:31
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.

2 participants