From 186e5a2daef34d32c139e32d85f393e61941fed3 Mon Sep 17 00:00:00 2001 From: stanislavh Date: Wed, 3 Jul 2024 15:07:40 +0200 Subject: [PATCH] SONAR-22183 Show 'calculation changed' message only when there is no new overall software qualities --- .../component-measures/components/ComponentMeasuresApp.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx index 343b6cd4acc..5e77f0dabde 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx @@ -47,7 +47,7 @@ import '../../../components/search-navigator.css'; import AnalysisMissingInfoMessage from '../../../components/shared/AnalysisMissingInfoMessage'; import { isSameBranchLike } from '../../../helpers/branch-like'; import { translate } from '../../../helpers/l10n'; -import { areLeakAndOverallCCTMeasuresComputed } from '../../../helpers/measures'; +import { areCCTMeasuresComputed } from '../../../helpers/measures'; import { WithBranchLikesProps, useBranchesQuery } from '../../../queries/branch'; import { MeasurePageView } from '../../../types/measures'; import { ComponentMeasure, Dict, MeasureEnhanced, Metric, Period } from '../../../types/types'; @@ -311,7 +311,7 @@ class ComponentMeasuresApp extends React.PureComponent { /> )} - {!areLeakAndOverallCCTMeasuresComputed(measures) && ( + {!areCCTMeasuresComputed(measures) && ( )} {this.renderContent(displayOverview, query, metric)} -- 2.39.5