-
Notifications
You must be signed in to change notification settings - Fork 483
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
Make dependencies tab configurable #122
Make dependencies tab configurable #122
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@@ -79,11 +83,11 @@ export default function TopNav(props: TopNavProps) { | |||
<div className="ui input"> | |||
<TraceIDSearchInput /> | |||
</div> | |||
{NAV_LINKS.map(({ key, to, text }) => | |||
{NAV_LINKS.map(({ key, to, text }) => ( |
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.
husky > npm run -s precommit (node v6.11.2)
does this change
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.
@pavolloffay I don't follow... can you elaborate?
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.
that this changes it done automatically via git hooks not by me
@pavolloffay could you please explain the objective / use case? It would also go to documentation of the new property. |
The motivation behind this is that dependency screen in production deployment requires an external process. Some deployments don't use it. In other words it's optional. |
@@ -79,11 +83,11 @@ export default function TopNav(props: TopNavProps) { | |||
<div className="ui input"> | |||
<TraceIDSearchInput /> | |||
</div> | |||
{NAV_LINKS.map(({ key, to, text }) => | |||
{NAV_LINKS.map(({ key, to, text }) => ( |
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.
@pavolloffay I don't follow... can you elaborate?
src/components/App/TopNav.js
Outdated
key: 'search', | ||
to: prefixUrl('/search'), | ||
text: 'Search', | ||
}, | ||
]; | ||
|
||
if (getConfig().depsMenuEnabled === 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.
This can just be
if (getConfig().depsMenuEnabled) {
Or is there a reason to fail if truthy but not strictly 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.
no, updated
src/constants/default-config.js
Outdated
@@ -46,4 +46,5 @@ export default deepFreeze({ | |||
], | |||
}, | |||
], | |||
depsMenuEnabled: 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.
Can this be renamed to dependenciesMenuEnabled
?
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
PR updated |
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
cc @objectiser