diff options
2 files changed, 15 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx index 9a886fb4508..1c2ba28fa9d 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx @@ -155,6 +155,11 @@ export default class EmbedDocsPopup extends React.PureComponent<Props> { <DetachIcon className="spacer-left" fill={theme.gray80} size={12} /> </Link> </li> + <li> + <Link onClick={this.props.onClose} to="/web_api"> + {translate('api_documentation.page')} + </Link> + </li> {this.context.onSonarCloud && this.renderSonarCloudLinks()} {!this.context.onSonarCloud && this.renderSonarQubeLinks()} </ul> diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap index 082ef152ac5..ba950f69c47 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap @@ -69,6 +69,16 @@ exports[`should display suggestion links 1`] = ` /> </Link> </li> + <li> + <Link + onClick={[MockFunction]} + onlyActiveOnIndex={false} + style={Object {}} + to="/web_api" + > + api_documentation.page + </Link> + </li> <React.Fragment> <li> <a |