aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared/Organization.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared/Organization.js')
-rw-r--r--server/sonar-web/src/main/js/components/shared/Organization.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/Organization.js b/server/sonar-web/src/main/js/components/shared/Organization.js
index 807abd3d11e..ac723440c9c 100644
--- a/server/sonar-web/src/main/js/components/shared/Organization.js
+++ b/server/sonar-web/src/main/js/components/shared/Organization.js
@@ -29,6 +29,7 @@ type OwnProps = {
type Props = {
link?: boolean,
+ linkClassName?: string,
organizationKey: string,
organization: { key: string, name: string } | null,
shouldBeDisplayed: boolean
@@ -51,7 +52,9 @@ class Organization extends React.Component {
return (
<span>
{this.props.link
- ? <OrganizationLink organization={organization}>{organization.name}</OrganizationLink>
+ ? <OrganizationLink className={this.props.linkClassName} organization={organization}>
+ {organization.name}
+ </OrganizationLink>
: organization.name}
<span className="slash-separator" />
</span>