From b367622f75eb6a5bc4ab1d485e771f70148d5f58 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 30 Apr 2018 17:49:47 +0200 Subject: [PATCH] SONAR-10609 open documentation links in the same tab --- .../embed-docs-modal/EmbedDocsPopup.tsx | 8 ++----- .../EmbedDocsPopup-test.tsx.snap | 24 +++---------------- 2 files changed, 5 insertions(+), 27 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 1c2ba28fa9d..ac864c7dea1 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 @@ -21,9 +21,7 @@ import * as React from 'react'; import * as PropTypes from 'prop-types'; import { Link } from 'react-router'; import { SuggestionLink } from './SuggestionsProvider'; -import * as theme from '../../../app/theme'; import BubblePopup, { BubblePopupPosition } from '../../../components/common/BubblePopup'; -import DetachIcon from '../../../components/icons-components/DetachIcon'; import { translate } from '../../../helpers/l10n'; import { getBaseUrl } from '../../../helpers/urls'; @@ -58,9 +56,8 @@ export default class EmbedDocsPopup extends React.PureComponent { {this.renderTitle(translate('embed_docs.suggestion'))} {this.props.suggestions.map((suggestion, index) => (
  • - + {suggestion.text} -
  • ))} @@ -150,9 +147,8 @@ export default class EmbedDocsPopup extends React.PureComponent {
      {this.renderSuggestions()}
    • - + {translate('embed_docs.documentation_index')} -
    • 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 ba950f69c47..8867991dcc5 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 @@ -17,36 +17,24 @@ exports[`should display suggestion links 1`] = ` key="0" > foo -
    • bar -
    • embed_docs.documentation_index -
    • -- 2.39.5