blob: 9f3d066f984e9cf10556824726d1f94e7e102b80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { formValidators } from '@gitlab/ui/dist/utils';
import { s__ } from '~/locale';
export const FORM_FIELD_NAME = 'name';
export const FORM_FIELD_ID = 'id';
export const FORM_FIELD_PATH = 'path';
export const FORM_FIELD_AVATAR = 'avatar';
export const FORM_FIELD_PATH_VALIDATORS = [
formValidators.required(s__('Organization|Organization URL is required.')),
formValidators.factory(
s__('Organization|Organization URL is too short (minimum is 2 characters).'),
(val) => val.length >= 2,
),
];
|