From 093c4b17921519b435fe868672774dd3aa0d544c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 30 Apr 2018 17:48:01 +0200 Subject: [PATCH] SONAR-10609 add web api link --- .../app/components/embed-docs-modal/EmbedDocsPopup.tsx | 5 +++++ .../__snapshots__/EmbedDocsPopup-test.tsx.snap | 10 ++++++++++ 2 files changed, 15 insertions(+) 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 { +
  • + + {translate('api_documentation.page')} + +
  • {this.context.onSonarCloud && this.renderSonarCloudLinks()} {!this.context.onSonarCloud && this.renderSonarQubeLinks()} 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`] = ` /> +
  • + + api_documentation.page + +