mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Update strings
Update strings
This commit is contained in:
@@ -52,13 +52,13 @@ export default function useAdHocDetailsStep(
|
|||||||
validate: () => {
|
validate: () => {
|
||||||
if (Object.keys(touched).includes('module_name' || 'module_args')) {
|
if (Object.keys(touched).includes('module_name' || 'module_args')) {
|
||||||
if (!values.module_name) {
|
if (!values.module_name) {
|
||||||
setFieldError('module_name', t`This field is must not be blank.`);
|
setFieldError('module_name', t`This field must not be blank.`);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
values.module_name === ('command' || 'shell') &&
|
values.module_name === ('command' || 'shell') &&
|
||||||
!values.module_args
|
!values.module_args
|
||||||
) {
|
) {
|
||||||
setFieldError('module_args', t`This field is must not be blank`);
|
setFieldError('module_args', t`This field must not be blank`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user