Skip to content

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

Merged
brandonkelly merged 4 commits into5.7from
bugfix/16556-edit-element-duplicated-view-links
Feb 3, 2025
Merged

Filter out "View in a new tab” action menu item, so that we don't show it twice#16623
brandonkelly merged 4 commits into5.7from
bugfix/16556-edit-element-duplicated-view-links

Conversation

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