use indentation for list items in error message

This commit is contained in:
GotPPay
2018-05-28 16:26:02 +02:00
parent d1d5cacddb
commit 22d5b32c71

View File

@@ -48,14 +48,16 @@ export class ValidationErrorsInfoDialog extends React.Component {
modal={this.props.modal ? this.props.modal : false} modal={this.props.modal ? this.props.modal : false}
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>