aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/home
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-05-02 17:41:34 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-03 20:20:51 +0200
commitc87c2986e927c424c64fd8d7cdb01c6c3ff34b95 (patch)
tree982ab0668005610a0b02f55bda3f261a92bcac11 /server/sonar-web/src/main/js/apps/quality-profiles/home
parent50627ee0c51115fcb56e78301b57854ee01457cc (diff)
downloadsonarqube-c87c2986e927c424c64fd8d7cdb01c6c3ff34b95.tar.gz
sonarqube-c87c2986e927c424c64fd8d7cdb01c6c3ff34b95.zip
SONAR-10611 use new help tooltips across the app (#203)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/home')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx
index a0b3302ff48..d05b77b2fda 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/ProfilesListRow.tsx
@@ -28,7 +28,7 @@ import { getRulesUrl } from '../../../helpers/urls';
import { isStagnant } from '../utils';
import { Profile } from '../types';
import Tooltip from '../../../components/controls/Tooltip';
-import DocTooltip from '../../../components/docs/DocTooltip';
+import DocInclude from '../../../components/docs/DocInclude';
interface Props {
onRequestFail: (reason: any) => void;
@@ -51,12 +51,7 @@ export default class ProfilesListRow extends React.PureComponent<Props> {
{profile.name}
</ProfileLink>
</div>
- {profile.isBuiltIn && (
- <>
- <BuiltInQualityProfileBadge className="spacer-left" />
- <DocTooltip className="spacer-left" doc="quality-profiles/built-in-quality-profile" />
- </>
- )}
+ {profile.isBuiltIn && <BuiltInQualityProfileBadge className="spacer-left" />}
</div>
);
}
@@ -66,10 +61,15 @@ export default class ProfilesListRow extends React.PureComponent<Props> {
if (profile.isDefault) {
return (
- <>
+ <Tooltip
+ overlay={
+ <DocInclude
+ className="abs-width-300 cut-margins"
+ path="/tooltips/quality-profiles/default-quality-profile"
+ />
+ }>
<span className="badge">{translate('default')}</span>
- <DocTooltip className="table-cell-doc" doc="quality-profiles/default-quality-profile" />
- </>
+ </Tooltip>
);
}