Skip to content

Commit 4ec4f40

Browse files
committed
cmt
1 parent 716ecaf commit 4ec4f40

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

static/app/data/forms/userFeedback.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const formGroups: JsonFormObject[] = [
5151
label: 'Enable Spam Detection',
5252
help: 'Toggles whether or not to enable auto spam detection in User Feedback.',
5353
getData: data => ({options: data}),
54+
visible: ({features}) => features.has('user-feedback-spam-ingest'),
5455
},
5556
],
5657
},

static/app/views/settings/projectUserFeedback/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function ProjectUserFeedback({organization, project, params: {projectId}}: Props
3535
});
3636
};
3737

38+
const features = new Set(organization.features);
39+
3840
// We need this mock here, otherwise the demo crash modal report will send to Sentry.
3941
// We also need to unset window.sentryEmbedCallback, otherwise if we get a legit crash modal in our app this code would gobble it up.
4042
useEffect(() => {
@@ -85,7 +87,9 @@ function ProjectUserFeedback({organization, project, params: {projectId}}: Props
8587
initialData={project.options}
8688
>
8789
<Access access={['project:write']} project={project}>
88-
{({hasAccess}) => <JsonForm disabled={!hasAccess} forms={formGroups} />}
90+
{({hasAccess}) => (
91+
<JsonForm disabled={!hasAccess} forms={formGroups} features={features} />
92+
)}
8993
</Access>
9094
</Form>
9195
</SentryDocumentTitle>

0 commit comments

Comments
 (0)