From: Belen Pruvost Date: Fri, 8 Apr 2022 15:07:50 +0000 (+0200) Subject: SONAR-16254 - Explicit the content of the Last Analysis warning X-Git-Tag: 9.5.0.56709~262 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63349576d2308c8a170a731945f7bb671094975c;p=sonarqube.git SONAR-16254 - Explicit the content of the Last Analysis warning --- diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx index e7df51cae19..4d60b9080ae 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx @@ -31,6 +31,7 @@ const AnalysisWarningsModal = lazyLoadComponent( interface Props { componentKey: string; + isBranch: boolean; onWarningDismiss: () => void; warnings: TaskWarning[]; } @@ -60,6 +61,9 @@ export default class ComponentNavWarnings extends React.PureComponent 0 && ( { const wrapper = shallow( diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap index f7893380d5b..4a4509f61f3 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap @@ -12,6 +12,7 @@ exports[`should render 1`] = ` id="component_navigation.last_analysis_had_warnings" values={ Object { + "branchType": "branches.branch", "warnings":