Upstream sync
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user