-
Notifications
You must be signed in to change notification settings - Fork 484
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
Ability to open additional menu links in same tab (Resolves #275) #278
Conversation
Signed-off-by: Vitaliy Zabolotskyy <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #278 +/- ##
=========================================
Coverage ? 82.58%
=========================================
Files ? 141
Lines ? 3152
Branches ? 654
=========================================
Hits ? 2603
Misses ? 435
Partials ? 114
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! I made a few minor comments.
@@ -30,6 +30,7 @@ describe('<TopNav>', () => { | |||
{ | |||
label: 'Twitter', | |||
url: 'https://twitter.com/JaegerTracing', | |||
openInSameTab: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this make a difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In renders the nested menu items
test, there is assertion if this is passed further.
I tried to make a test for rendered dropdown, but I just don't know, how to do it.
Signed-off-by: Vitaliy Zabolotskyy <[email protected]>
Signed-off-by: Vitaliy Zabolotskyy <[email protected]>
Signed-off-by: Vitaliy Zabolotskyy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work and thanks for creating this! Two small suggestions.
Signed-off-by: Joe Farro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one typo, otherwise seems good
Signed-off-by: Joe Farro <[email protected]>
…cing#275) (jaegertracing#278) * Ability to open additional menu links in same tab (jaegertracing#275) Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add negative test case Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add helper function to create item links Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Fix no-use-before-define lint error Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Use anchorTarget in custom menu configuration Signed-off-by: Joe Farro <[email protected]> * Fix typo in test case Signed-off-by: Joe Farro <[email protected]> Signed-off-by: Everett Ross <[email protected]>
…cing#275) (jaegertracing#278) * Ability to open additional menu links in same tab (jaegertracing#275) Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add negative test case Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add helper function to create item links Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Fix no-use-before-define lint error Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Use anchorTarget in custom menu configuration Signed-off-by: Joe Farro <[email protected]> * Fix typo in test case Signed-off-by: Joe Farro <[email protected]> Signed-off-by: vvvprabhakar <[email protected]>
…cing#275) (jaegertracing#278) * Ability to open additional menu links in same tab (jaegertracing#275) Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add negative test case Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Add helper function to create item links Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Fix no-use-before-define lint error Signed-off-by: Vitaliy Zabolotskyy <[email protected]> * Use anchorTarget in custom menu configuration Signed-off-by: Joe Farro <[email protected]> * Fix typo in test case Signed-off-by: Joe Farro <[email protected]> Signed-off-by: Everett Ross <[email protected]> Signed-off-by: vvvprabhakar <[email protected]>
Signed-off-by: Vitaliy Zabolotskyy [email protected]
Which problem is this PR solving?
Resolves #275
Adds option to ui-config, so added link can be opened in the same tab
Short description of the changes
Added corresponding boolean field to ConfigMenuItem and setting link target accordingly.