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

chore(ImmutableDevice): pass onRowClick to ImmutableDevice module #2020

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

mkholjuraev
Copy link
Contributor

Passes onRowClick function to immutable device module to redirect the user when the system name is clicked in the Name column.

@mkholjuraev mkholjuraev requested a review from a team as a code owner November 2, 2023 11:28
Copy link

jira-linking bot commented Nov 2, 2023

Commits missing Jira IDs:
e7f191e
c2d6487

@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...dInventory/ImmutableDevicesTab/ImmutableDevices.js 0.00% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

@@ -35,6 +35,7 @@ const ImmutableDevices = ({ intl, cveName, filterRuleValues, inventoryRef, heade
], 'inventory');

const dispatch = useDispatch();
const navigate = useNavigate();
Copy link
Member

@bastilian bastilian Nov 2, 2023

Choose a reason for hiding this comment

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

You can use const navigate = useInsightsNavigate('inventory') here and the navigate only be navigate(`/${systemId}?appName=vulnerabilities`);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice suggestion!

@mkholjuraev mkholjuraev requested review from bastilian and a team November 2, 2023 20:14
@mkholjuraev
Copy link
Contributor Author

/retest

@mkholjuraev mkholjuraev merged commit 5cb4185 into RedHatInsights:master Nov 6, 2023
3 checks passed
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.

4 participants