Upstream sync

This commit is contained in:
Senad Uka
2018-05-28 15:28:19 +02:00
parent 372b3883a0
commit 3969863cbf
10 changed files with 175 additions and 60 deletions

View File

@@ -8,11 +8,17 @@ export class ValidationErrorsInfoDialog extends React.Component {
this.props = props;
this.state = {
open: this.props.open,
title: "Errors",
}
}
componentWillReceiveProps(newProps) {
this.setState({ open: newProps.open });
let title = this.state.title;
if (newProps.errorTitle) {
title = newProps.errorTitle;
}
this.setState({ open: newProps.open, title: title });
}
handleOpen = () => {
@@ -38,7 +44,7 @@ export class ValidationErrorsInfoDialog extends React.Component {
return (
<div>
<Dialog
title="Errors"
title={this.state.title}
actions={actions}
modal={this.props.modal ? this.props.modal : false}
open={this.state.open}