aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx
index f384811b69e..386ffa1b77e 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.tsx
@@ -28,7 +28,7 @@ import { getQualityGatesUrl } from '../../../../helpers/urls';
import { ComponentQualifier } from '../../../../types/component';
interface Props {
- appState: Pick<T.AppState, 'canAdmin' | 'globalPages' | 'organizationsEnabled' | 'qualifiers'>;
+ appState: Pick<T.AppState, 'canAdmin' | 'globalPages' | 'qualifiers'>;
currentUser: T.CurrentUser;
location: { pathname: string };
}
@@ -156,16 +156,15 @@ export default class GlobalNavMenu extends React.PureComponent<Props> {
const governanceInstalled = this.props.appState.qualifiers.includes(
ComponentQualifier.Portfolio
);
- const { organizationsEnabled } = this.props.appState;
return (
<ul className="global-navbar-menu">
{this.renderProjects()}
{governanceInstalled && this.renderPortfolios()}
{this.renderIssuesLink()}
- {!organizationsEnabled && this.renderRulesLink()}
- {!organizationsEnabled && this.renderProfilesLink()}
- {!organizationsEnabled && this.renderQualityGatesLink()}
+ {this.renderRulesLink()}
+ {this.renderProfilesLink()}
+ {this.renderQualityGatesLink()}
{this.renderAdministrationLink()}
{this.renderMore()}
</ul>