aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js')
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js
index d08cfabf5d4..9111c0c70e2 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js
+++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.js
@@ -22,10 +22,10 @@ import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import OrganizationNavigation from '../navigation/OrganizationNavigation';
+import NotFound from '../../../app/components/NotFound';
import { fetchOrganization } from '../actions';
-import { getOrganizationByKey } from '../../../store/rootReducer';
+import { getCurrentUser, getOrganizationByKey } from '../../../store/rootReducer';
import type { Organization } from '../../../store/organizations/duck';
-import NotFound from '../../../app/components/NotFound';
type OwnProps = {
params: { organizationKey: string }
@@ -33,6 +33,7 @@ type OwnProps = {
type Props = {
children?: React.Element<*>,
+ currentUser: { isLoggedIn: boolean, showOnboardingTutorial: true },
location: Object,
organization: null | Organization,
params: { organizationKey: string },
@@ -88,7 +89,11 @@ class OrganizationPage extends React.PureComponent {
return (
<div>
<Helmet defaultTitle={organization.name} titleTemplate={'%s - ' + organization.name} />
- <OrganizationNavigation organization={organization} location={this.props.location} />
+ <OrganizationNavigation
+ currentUser={this.props.currentUser}
+ organization={organization}
+ location={this.props.location}
+ />
{this.props.children}
</div>
);
@@ -96,6 +101,7 @@ class OrganizationPage extends React.PureComponent {
}
const mapStateToProps = (state, ownProps: OwnProps) => ({
+ currentUser: getCurrentUser(state),
organization: getOrganizationByKey(state, ownProps.params.organizationKey)
});