aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-07-14 14:29:55 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-07-14 14:29:55 +0200
commit0f850d7f5d8c384f5de4d3c4e5cd594214fc50ba (patch)
tree77002b08e2aeb7ca08284ddbd83ca9603616590e /server
parent5c9215f07d350436eaf5b03639c13cd3efbbd483 (diff)
downloadsonarqube-0f850d7f5d8c384f5de4d3c4e5cd594214fc50ba.tar.gz
sonarqube-0f850d7f5d8c384f5de4d3c4e5cd594214fc50ba.zip
SONAR-7806 Remove events on module view
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta/Meta.js7
1 files changed, 6 insertions, 1 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 c87e51e3010..70d5a4d6be0 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
@@ -28,6 +28,7 @@ import EventsList from './../events/EventsList';
const Meta = ({ component }) => {
const { qualifier, description, links, profiles, gate } = component;
+ const isProject = qualifier === 'TRK';
const isView = qualifier === 'VW' || qualifier === 'SVW';
const isDeveloper = qualifier === 'DEV';
@@ -39,6 +40,8 @@ const Meta = ({ component }) => {
const shouldShowQualityProfiles = !isView && !isDeveloper && hasQualityProfiles;
const shouldShowQualityGate = !isView && !isDeveloper && hasQualityGate;
+ const showShowEvents = isProject || isView || isDeveloper;
+
return (
<div className="overview-meta">
<div className="overview-meta-card">
@@ -67,7 +70,9 @@ const Meta = ({ component }) => {
</div>
)}
- <EventsList component={component}/>
+ {showShowEvents && (
+ <EventsList component={component}/>
+ )}
</div>
);
};