mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
31 lines
879 B
TypeScript
31 lines
879 B
TypeScript
import type {JsonFormObject} from 'sentry/components/forms/types';
|
|
import {t} from 'sentry/locale';
|
|
import slugify from 'sentry/utils/slugify';
|
|
|
|
// Export route to make these forms searchable by label/help
|
|
export const route = '/settings/:orgId/teams/:teamId/settings/';
|
|
|
|
const formGroups: JsonFormObject[] = [
|
|
{
|
|
// Form "section"/"panel"
|
|
title: 'Team Settings',
|
|
fields: [
|
|
{
|
|
name: 'slug',
|
|
type: 'string',
|
|
required: true,
|
|
label: t('Team Slug'),
|
|
placeholder: 'e.g. api-team',
|
|
help: t('A unique ID used to identify the team'),
|
|
transformInput: slugify,
|
|
disabled: ({hasTeamWrite}) => !hasTeamWrite,
|
|
saveOnBlur: false,
|
|
saveMessageAlertType: 'info',
|
|
saveMessage: t('You will be redirected to the new team slug after saving'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default formGroups;
|