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

Filter out "View in a new tab” action menu item, so that we don't show it twice #16623

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Feb 3, 2025

Description

On the element’s full edit page, we were showing two view options: the “View” button next to the “Preview” and “View in a new tab” in the actions menu, both linking to the element’s template.

The “View in a new tab” option in the actions menu should not appear if the element has at least one preview target and we’re on the element’s full edit page so that we don’t duplicate the same action twice. However, it should still be there in other contexts (e.g., a slideout).

Related issues

#16556

@i-just i-just requested a review from brandonkelly February 3, 2025 16:22
@brandonkelly brandonkelly changed the base branch from 5.x to 5.7 February 3, 2025 18:16
@brandonkelly brandonkelly merged commit 97efefb into 5.7 Feb 3, 2025
@brandonkelly brandonkelly deleted the bugfix/16556-edit-element-duplicated-view-links branch February 3, 2025 18: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