mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 05:31:22 -03:30
prevents submission of jtform if name is > 512 characters
This commit is contained in:
parent
bc8e19b51d
commit
869b649b66
@ -30,7 +30,7 @@ import {
|
||||
SubFormLayout,
|
||||
} from '../../../components/FormLayout';
|
||||
import { VariablesField } from '../../../components/CodeEditor';
|
||||
import { required } from '../../../util/validators';
|
||||
import { required, combine, maxLength } from '../../../util/validators';
|
||||
import { JobTemplate } from '../../../types';
|
||||
import {
|
||||
InventoryLookup,
|
||||
@ -239,7 +239,7 @@ function JobTemplateForm({
|
||||
name="name"
|
||||
type="text"
|
||||
label={t`Name`}
|
||||
validate={required(null)}
|
||||
validate={combine([required(null), maxLength(512)])}
|
||||
isRequired
|
||||
/>
|
||||
<FormField
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user