From a1da96383b98ae9fb0986d8e8323482ffebfe277 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Wed, 12 Jul 2017 13:13:42 +0200 Subject: [PATCH] SONAR-9403 Add a tooltip on the button to show the metric history on the measures page --- .../details/MeasureDetailsHeader.js | 15 +++++++++------ .../main/resources/org/sonar/l10n/core.properties | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetailsHeader.js b/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetailsHeader.js index f2dad990a91..6b2d5324559 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetailsHeader.js +++ b/server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetailsHeader.js @@ -24,11 +24,12 @@ import LanguageDistribution from '../../../components/charts/LanguageDistributio import LeakPeriodLegend from '../components/LeakPeriodLegend'; import IssueTypeIcon from '../../../components/ui/IssueTypeIcon'; import HistoryIcon from '../../../components/icons-components/HistoryIcon'; +import Tooltip from '../../../components/controls/Tooltip'; import { ComplexityDistribution } from '../../../components/shared/complexity-distribution'; import { isDiffMetric } from '../../../helpers/measures'; import { TooltipsContainer } from '../../../components/mixins/tooltips-mixin'; import { getComponentMeasureHistory } from '../../../helpers/urls'; -import { getLocalizedMetricName } from '../../../helpers/l10n'; +import { getLocalizedMetricName, translate } from '../../../helpers/l10n'; export default function MeasureDetailsHeader({ component, @@ -44,11 +45,13 @@ export default function MeasureDetailsHeader({ {getLocalizedMetricName(metric)} {!isDiff && - - - } + + + + + } {isDiff && diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 70928d87746..45bc006fd30 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2858,6 +2858,7 @@ code.open_component_page=Open Component's Page component_measures.all_measures=All Measures component_measures.domain_measures={0} Measures component_measures.back_to_list=Back to List +component_measures.show_metric_history=Show history of this metric component_measures.tab.tree=Tree component_measures.tab.list=List component_measures.tab.bubbles=Bubble Chart -- 2.39.5