From: Wouter Admiraal Date: Mon, 17 Feb 2020 12:26:40 +0000 (+0100) Subject: SONAR-13030 Prevent adding notifications for Applications X-Git-Tag: 8.2.0.32929~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa27c18738852cb20da4669b4d61691270accc14;p=sonarqube.git SONAR-13030 Prevent adding notifications for Applications --- diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx index 50dc52ca3b9..c8a78beafbf 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx @@ -86,7 +86,8 @@ export class ProjectInformation extends React.PureComponent { const { branchLike, component, currentUser, metrics } = this.props; const { measures, page } = this.state; - const canConfigureNotifications = isLoggedIn(currentUser); + const canConfigureNotifications = + isLoggedIn(currentUser) && component.qualifier === ComponentQualifier.Project; const canUseBadges = metrics !== undefined && component.visibility !== 'private' &&