add "reconnect now" option

This commit is contained in:
or-else
2018-12-17 12:02:47 +03:00
parent a5d405b083
commit f78d673e02
10 changed files with 224 additions and 89 deletions
+8 -1
View File
@@ -33,7 +33,14 @@ export default class ErrorPanel extends React.PureComponent {
return (
<div className={className}>
<div className="icon"><i className="material-icons">{level}</i></div>
<span dangerouslySetInnerHTML={{__html: this.props.text}} />
<span>
<span dangerouslySetInnerHTML={{__html: this.props.text}} />
{this.props.action ?
<a href="javascript:;" onClick={this.props.action}>
{this.props.actionText}
</a>
: null}
</span>
<div className="cancel"><MenuCancel onCancel={this.hide} /></div>
</div>
);