diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-08-31 16:54:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-09-18 20:07:13 +0000 |
commit | 13ef209f1b2cc5f82d0c3bde502ba02649b6c5e2 (patch) | |
tree | 0101ade4b147716283dbb39649e409d85a41bd8c /server/sonar-web/src | |
parent | d94d9a9f4a298fcd1eee968f6f4949bd57fd9672 (diff) | |
download | sonarqube-13ef209f1b2cc5f82d0c3bde502ba02649b6c5e2.tar.gz sonarqube-13ef209f1b2cc5f82d0c3bde502ba02649b6c5e2.zip |
SONAR-13643 Remove references to 'plugin' or 'analyzer'
Diffstat (limited to 'server/sonar-web/src')
3 files changed, 7 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/BuiltInQualityProfileBadge.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/BuiltInQualityProfileBadge.tsx index d7dfe5fecf9..cc45270f065 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/BuiltInQualityProfileBadge.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/BuiltInQualityProfileBadge.tsx @@ -19,8 +19,8 @@ */ import * as classNames from 'classnames'; import * as React from 'react'; +import Tooltip from 'sonar-ui-common/components/controls/Tooltip'; import { translate } from 'sonar-ui-common/helpers/l10n'; -import DocTooltip from '../../../components/docs/DocTooltip'; interface Props { className?: string; @@ -35,14 +35,8 @@ export default function BuiltInQualityProfileBadge({ className, tooltip = true } ); if (tooltip) { - return ( - <DocTooltip - doc={import( - /* webpackMode: "eager" */ 'Docs/tooltips/quality-profiles/built-in-quality-profile.md' - )}> - {badge} - </DocTooltip> - ); + return <Tooltip overlay={translate('quality_profiles.built_in.description')}>{badge}</Tooltip>; } + return badge; } diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/BuiltInQualityProfileBadge-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/BuiltInQualityProfileBadge-test.tsx.snap index a5171e5461f..823cfbafac1 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/BuiltInQualityProfileBadge-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/BuiltInQualityProfileBadge-test.tsx.snap @@ -1,15 +1,15 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`should render correctly 1`] = ` -<DocTooltip - doc={Promise {}} +<Tooltip + overlay="quality_profiles.built_in.description" > <div className="badge badge-info" > quality_profiles.built_in </div> -</DocTooltip> +</Tooltip> `; exports[`should render correctly 2`] = ` diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx index 52eb3badcdf..92fcf9f4a8f 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx @@ -92,9 +92,7 @@ export default class ProfileHeader extends React.PureComponent<Props> { {profile.isBuiltIn && ( <div className="page-description"> - {translate('quality_profiles.built_in.description.1')} - <br /> - {translate('quality_profiles.built_in.description.2')} + {translate('quality_profiles.built_in.description')} </div> )} </header> |