use indentation for list items in error message
This commit is contained in:
@@ -49,13 +49,15 @@ export class ValidationErrorsInfoDialog extends React.Component {
|
|||||||
height={defaultDialogHeight + this.props.errorMessages.length * dialogHeightPerLine}
|
height={defaultDialogHeight + this.props.errorMessages.length * dialogHeightPerLine}
|
||||||
>
|
>
|
||||||
{this.props.errorMessages.map(errorMessage=>{
|
{this.props.errorMessages.map(errorMessage=>{
|
||||||
return (
|
const oneValidationMessage = (<span><a>{errorMessage.message}</a><br /></span>);
|
||||||
<div>
|
const oneValidationMessageWithTab = (<span><li style={{marginLeft:2 + "em"}}>{errorMessage.message}</li></span>);
|
||||||
<a>{errorMessage.message}</a>
|
|
||||||
<br/>
|
if (errorMessage.field_name === "password-tab"){
|
||||||
</div>
|
return oneValidationMessageWithTab;
|
||||||
);})
|
} else{
|
||||||
|
return oneValidationMessage;
|
||||||
}
|
}
|
||||||
|
})}
|
||||||
</Dialog>
|
</Dialog>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user