From 98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Wed, 26 Feb 2020 13:54:50 +0100 Subject: SONAR-13129 Remove Quality Gate and Quality Profiles from Applications information --- .../ProjectInformationRenderer.tsx | 29 +++++++++++----------- .../ProjectInformationRenderer-test.tsx.snap | 26 ------------------- 2 files changed, 15 insertions(+), 40 deletions(-) (limited to 'server') 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 []} /> -
- - -
-- cgit v1.2.3