mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #1115 from mewtaylor/issue/gh-1112
Fix GH-1112: Update id string for general error message strings
This commit is contained in:
commit
1b37ec232c
1 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ module.exports = {
|
||||||
callback = callback || function () {};
|
callback = callback || function () {};
|
||||||
if (!username) {
|
if (!username) {
|
||||||
this.refs.form.refs.formsy.updateInputsWithError({
|
this.refs.form.refs.formsy.updateInputsWithError({
|
||||||
'user.username': formatMessage({id: 'teacherRegistration.validationRequired'})
|
'user.username': formatMessage({id: 'form.validationRequired'})
|
||||||
});
|
});
|
||||||
return callback(false);
|
return callback(false);
|
||||||
}
|
}
|
||||||
|
@ -457,7 +457,7 @@ module.exports = {
|
||||||
onValidSubmit: function (formData, reset, invalidate) {
|
onValidSubmit: function (formData, reset, invalidate) {
|
||||||
if (!formData.phone || formData.phone.national_number === '+') {
|
if (!formData.phone || formData.phone.national_number === '+') {
|
||||||
return invalidate({
|
return invalidate({
|
||||||
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationRequired'})
|
'phone': this.props.intl.formatMessage({id: 'form.validationRequired'})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return this.props.onNextStep(formData);
|
return this.props.onNextStep(formData);
|
||||||
|
@ -582,7 +582,7 @@ module.exports = {
|
||||||
}}
|
}}
|
||||||
validationErrors={{
|
validationErrors={{
|
||||||
minLength: formatMessage({
|
minLength: formatMessage({
|
||||||
id: 'teacherRegistration.validationRequired'
|
id: 'form.validationRequired'
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
required />
|
required />
|
||||||
|
|
Loading…
Reference in a new issue