From: Jeremy Davis Date: Wed, 26 Feb 2020 12:54:50 +0000 (+0100) Subject: SONAR-13129 Remove Quality Gate and Quality Profiles from Applications information X-Git-Tag: 8.3.0.34182~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189;p=sonarqube.git SONAR-13129 Remove Quality Gate and Quality Profiles from Applications information --- diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx index 4bee5cdeac6..1aff0f9cf33 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx @@ -79,21 +79,22 @@ export function ProjectInformationRenderer(props: ProjectInformationRendererProp - {(component.qualityGate || - (component.qualityProfiles && component.qualityProfiles.length > 0)) && ( - <> -
- {component.qualityGate && } + {!isApp && + (component.qualityGate || + (component.qualityProfiles && component.qualityProfiles.length > 0)) && ( + <> +
+ {component.qualityGate && } - {component.qualityProfiles && component.qualityProfiles.length > 0 && ( - - )} -
- - )} + {component.qualityProfiles && component.qualityProfiles.length > 0 && ( + + )} +
+ + )} {!isApp && } diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap index f1d2b875e96..d071690097a 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap @@ -303,32 +303,6 @@ exports[`should render an app correctly: default 1`] = ` measures={Array []} /> -
- - -