Browse Source

SONAR-13030 Prevent adding notifications for Applications

tags/8.2.0.32929
Wouter Admiraal 4 years ago
parent
commit
fa27c18738

+ 2
- 1
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx View File

@@ -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' &&

Loading…
Cancel
Save