diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-07-13 12:27:02 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-07-25 20:21:20 +0200 |
commit | b998b44aafeff3726122bbc491e2c84aed284b61 (patch) | |
tree | fbc8aea8d272107b7aeeec6b89e6cee1eac93ef6 /server/sonar-web/src/main/js/apps/organizations | |
parent | 4423587a87475044fb3eea1229eca5f52177db95 (diff) | |
download | sonarqube-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')
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> )} |