aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizations
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-07-13 12:27:02 +0200
committerSonarTech <sonartech@sonarsource.com>2018-07-25 20:21:20 +0200
commitb998b44aafeff3726122bbc491e2c84aed284b61 (patch)
treefbc8aea8d272107b7aeeec6b89e6cee1eac93ef6 /server/sonar-web/src/main/js/apps/organizations
parent4423587a87475044fb3eea1229eca5f52177db95 (diff)
downloadsonarqube-b998b44aafeff3726122bbc491e2c84aed284b61.tar.gz
sonarqube-b998b44aafeff3726122bbc491e2c84aed284b61.zip
SONAR-11013 Add search capabilities to the embedded documentation (#513)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations')
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembers.tsx5
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx4
3 files changed, 8 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembers.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembers.tsx
index 68096c99764..86e505b33b3 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembers.tsx
+++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembers.tsx
@@ -90,7 +90,10 @@ export default class OrganizationMembers extends React.PureComponent<Props> {
memberLogins={this.props.memberLogins}
organization={organization}
/>
- <DocTooltip className="spacer-left" doc="organizations/add-organization-member" />
+ <DocTooltip
+ className="spacer-left"
+ doc={import(/* webpackMode: "eager" */ 'Docs/tooltips/organizations/add-organization-member.md')}
+ />
</div>
)}
</MembersPageHeader>
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
index 778362a0ff1..094f4735c81 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
@@ -86,7 +86,7 @@ exports[`should render actions for admin 1`] = `
/>
<DocTooltip
className="spacer-left"
- doc="organizations/add-organization-member"
+ doc={Promise {}}
/>
</div>
</MembersPageHeader>
diff --git a/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx b/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx
index 10e2496c277..ed6bfdd185e 100644
--- a/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx
+++ b/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigationMeta.tsx
@@ -51,7 +51,9 @@ export default function OrganizationNavigationMeta({
{onSonarCloud &&
isPaidOrganization(organization) &&
hasPrivateAccess(currentUser, organization, userOrganizations) && (
- <DocTooltip className="spacer-right" doc="organizations/subscription-paid-plan">
+ <DocTooltip
+ className="spacer-right"
+ doc={import(/* webpackMode: "eager" */ 'Docs/tooltips/organizations/subscription-paid-plan.md')}>
<div className="outline-badge">{translate('organization.paid_plan.badge')}</div>
</DocTooltip>
)}