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

Fixes #37592 - open Documentation in new tab in generic table #10222

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

MariaAga
Copy link
Member

No description provided.

@sjha4
Copy link
Contributor

sjha4 commented Jun 26, 2024

Is this hasHelpPage flag on the Table used anywhere in any pages? I didn't see any component using it right now to test it.

@MariaAga
Copy link
Member Author

It was noticed when reviewing a pr in foreman_ansible, to test I added hasHelpPage in webpack/assets/javascripts/react_app/routes/Models/ModelsPage/index.js

@sjha4
Copy link
Contributor

sjha4 commented Jun 26, 2024

Tested that documentation in action toolbar for the table opens in a new tab with the change. Non-write Ack 👍🏼

action: {
href: customHelpURL || helpURL(),
target: '_blank',
rel: 'noopener noreferrer',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this answer on StackOverflow, all browsers handle this automatically.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, removed!

Copy link
Contributor

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK based on other reviews. 👍

@jeremylenz jeremylenz merged commit 123ad20 into theforeman:develop Sep 6, 2024
65 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants