Include bad email address in validator message

This commit is contained in:
nathan 2022-09-23 10:08:31 -06:00
parent 00c9550465
commit 074a03f2ec

View File

@ -39,6 +39,6 @@ export class IsEmail extends Pattern
*/
static async getMessage(data)
{
return data.formControl.egw().lang("Invalid email");
return data.formControl.egw().lang("Invalid email") + (data.modelValue ? ' "' + data.modelValue + '"' : "");
}
}