diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-07-24 16:12:39 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-07-31 11:27:51 +0200 |
commit | 30cc3b95809bce6a3e1ca81ee7d661590fb772ac (patch) | |
tree | 9d5ecc869ad95e5b81c093943d50fb70f30d1219 /server/sonar-web/src/main/js/apps/overview/meta/Meta.js | |
parent | 1cbd06a5264b83da40e6d4a41e31762e5835feb6 (diff) | |
download | sonarqube-30cc3b95809bce6a3e1ca81ee7d661590fb772ac.tar.gz sonarqube-30cc3b95809bce6a3e1ca81ee7d661590fb772ac.zip |
SONAR-9531 Change the application space
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/meta/Meta.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/meta/Meta.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js index 4d84a3f2e23..689db65fbed 100644 --- a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js +++ b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js @@ -34,15 +34,14 @@ const Meta = ({ component, history, measures, areThereCustomOrganizations, route const { qualifier, description, qualityProfiles, qualityGate } = component; const isProject = qualifier === 'TRK'; - const isView = qualifier === 'VW' || qualifier === 'SVW'; - const isDeveloper = qualifier === 'DEV'; + const isApplication = qualifier === 'APP'; const hasDescription = !!description; const hasQualityProfiles = Array.isArray(qualityProfiles) && qualityProfiles.length > 0; const hasQualityGate = !!qualityGate; - const shouldShowQualityProfiles = !isView && !isDeveloper && hasQualityProfiles; - const shouldShowQualityGate = !isView && !isDeveloper && hasQualityGate; + const shouldShowQualityProfiles = isProject && hasQualityProfiles; + const shouldShowQualityGate = isProject && hasQualityGate; const hasOrganization = component.organization != null && areThereCustomOrganizations; return ( @@ -56,7 +55,8 @@ const Meta = ({ component, history, measures, areThereCustomOrganizations, route {isProject && <MetaTags component={component} />} - {isProject && <AnalysesList project={component.key} history={history} router={router} />} + {(isProject || isApplication) && + <AnalysesList project={component.key} history={history} router={router} />} {shouldShowQualityGate && <MetaQualityGate @@ -71,7 +71,7 @@ const Meta = ({ component, history, measures, areThereCustomOrganizations, route profiles={qualityProfiles} />} - <MetaLinks component={component} /> + {isProject && <MetaLinks component={component} />} <MetaKey component={component} /> |