Просмотр исходного кода

feat(alerts): add spend allocation notification select (#39994)

Cathy Teng 2 лет назад
Родитель
Сommit
c53f34710d
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      static/app/views/settings/account/notifications/fields2.tsx

+ 15 - 0
static/app/views/settings/account/notifications/fields2.tsx

@@ -3,6 +3,7 @@ import {Fragment} from 'react';
 import FeatureBadge from 'sentry/components/featureBadge';
 import {Field} from 'sentry/components/forms/types';
 import ExternalLink from 'sentry/components/links/externalLink';
+import QuestionTooltip from 'sentry/components/questionTooltip';
 import {t, tct} from 'sentry/locale';
 import {getDocsLinkForEventType} from 'sentry/views/settings/account/notifications/utils';
 
@@ -177,4 +178,18 @@ export const QUOTA_FIELDS = [
       ['never', t('Off')],
     ] as const,
   },
+  {
+    name: 'quotaSpendAllocations',
+    label: (
+      <Fragment>
+        {t('Spend Allocations')}{' '}
+        <QuestionTooltip position="top" title="Business plan only" size="xs" />
+      </Fragment>
+    ),
+    help: t('Receive notifications about your spend allocations.'),
+    choices: [
+      ['always', t('On')],
+      ['never', t('Off')],
+    ] as const,
+  },
 ];