|
@@ -49,6 +49,7 @@ import {DiscoverDatasets} from 'sentry/utils/discover/types';
|
|
import {displayReprocessEventAction} from 'sentry/utils/displayReprocessEventAction';
|
|
import {displayReprocessEventAction} from 'sentry/utils/displayReprocessEventAction';
|
|
import {getAnalyticsDataForGroup} from 'sentry/utils/events';
|
|
import {getAnalyticsDataForGroup} from 'sentry/utils/events';
|
|
import {uniqueId} from 'sentry/utils/guid';
|
|
import {uniqueId} from 'sentry/utils/guid';
|
|
|
|
+import {isActiveSuperuser} from 'sentry/utils/isActiveSuperuser';
|
|
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
|
|
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
|
|
import withApi from 'sentry/utils/withApi';
|
|
import withApi from 'sentry/utils/withApi';
|
|
import {normalizeUrl} from 'sentry/utils/withDomainRequired';
|
|
import {normalizeUrl} from 'sentry/utils/withDomainRequired';
|
|
@@ -367,6 +368,7 @@ class Actions extends Component<Props> {
|
|
} = getConfigForIssueType(group).actions;
|
|
} = getConfigForIssueType(group).actions;
|
|
|
|
|
|
const hasDeleteAccess = organization.access.includes('event:admin');
|
|
const hasDeleteAccess = organization.access.includes('event:admin');
|
|
|
|
+ const activeSuperUser = isActiveSuperuser();
|
|
|
|
|
|
const {dropdownItems, onIgnore} = getIgnoreActions({onUpdate: this.onUpdate});
|
|
const {dropdownItems, onIgnore} = getIgnoreActions({onUpdate: this.onUpdate});
|
|
return (
|
|
return (
|
|
@@ -408,6 +410,10 @@ class Actions extends Component<Props> {
|
|
{
|
|
{
|
|
key: 'suggested-fix',
|
|
key: 'suggested-fix',
|
|
className: 'hidden-sm hidden-md hidden-lg',
|
|
className: 'hidden-sm hidden-md hidden-lg',
|
|
|
|
+ disabled: activeSuperUser,
|
|
|
|
+ tooltip: activeSuperUser
|
|
|
|
+ ? t("Superusers can't consent to policies")
|
|
|
|
+ : undefined,
|
|
label: (
|
|
label: (
|
|
<Tooltip
|
|
<Tooltip
|
|
title={experimentalFeatureTooltipDesc}
|
|
title={experimentalFeatureTooltipDesc}
|
|
@@ -517,6 +523,7 @@ class Actions extends Component<Props> {
|
|
disabled={disabled}
|
|
disabled={disabled}
|
|
groupId={group.id}
|
|
groupId={group.id}
|
|
onClick={() => this.trackIssueAction('open_ai_suggested_fix')}
|
|
onClick={() => this.trackIssueAction('open_ai_suggested_fix')}
|
|
|
|
+ activeSuperUser={activeSuperUser}
|
|
/>
|
|
/>
|
|
</GuideAnchor>
|
|
</GuideAnchor>
|
|
</Feature>
|
|
</Feature>
|