diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-02-17 13:26:40 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-02-21 20:46:16 +0100 |
commit | fa27c18738852cb20da4669b4d61691270accc14 (patch) | |
tree | b34133de874c7f1dc126312c64d3fda564c7380f /server/sonar-web/src/main/js | |
parent | 1274e4f398ab05aceaedcaa9fd5453ca5b7732a3 (diff) | |
download | sonarqube-fa27c18738852cb20da4669b4d61691270accc14.tar.gz sonarqube-fa27c18738852cb20da4669b4d61691270accc14.zip |
SONAR-13030 Prevent adding notifications for Applications
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
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<Props, State> { 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' && |