From fa27c18738852cb20da4669b4d61691270accc14 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Mon, 17 Feb 2020 13:26:40 +0100 Subject: [PATCH] SONAR-13030 Prevent adding notifications for Applications --- .../nav/component/projectInformation/ProjectInformation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' && -- 2.39.5