mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
Fixed error message substitutions for members-importer summary
This commit is contained in:
parent
2a6fa60718
commit
248b9a021e
|
@ -300,9 +300,9 @@ export default ModalComponent.extend({
|
||||||
if (importResponse.meta.stats.invalid && importResponse.meta.stats.invalid.errors) {
|
if (importResponse.meta.stats.invalid && importResponse.meta.stats.invalid.errors) {
|
||||||
importResponse.meta.stats.invalid.errors.forEach((error) => {
|
importResponse.meta.stats.invalid.errors.forEach((error) => {
|
||||||
if (error.message === 'Value in [members.email] cannot be blank.') {
|
if (error.message === 'Value in [members.email] cannot be blank.') {
|
||||||
error.message = 'Missing email address.';
|
error.message = 'Missing email address';
|
||||||
} else if (error.message === 'Validation (isEmail) failed for email ') {
|
} else if (error.message === 'Validation (isEmail) failed for email') {
|
||||||
error.message = 'Invalid email address.';
|
error.message = 'Invalid email address';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue