diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-26 10:42:54 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-26 10:42:54 -0700 |
commit | 6d957a26d884cd2ff200a4d14b035bc03415cab6 (patch) | |
tree | f66be7d49d28d70bcb14b55920c75b9499f70d34 | |
parent | b662874519781179b605a10d7ad5b6379bdb3fb3 (diff) | |
download | chat-6d957a26d884cd2ff200a4d14b035bc03415cab6.tar.gz chat-6d957a26d884cd2ff200a4d14b035bc03415cab6.tar.bz2 chat-6d957a26d884cd2ff200a4d14b035bc03415cab6.zip |
PLT-564 removing auto-hide from error bar
-rw-r--r-- | web/react/components/error_bar.jsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/web/react/components/error_bar.jsx b/web/react/components/error_bar.jsx index 6311d9460..f098384aa 100644 --- a/web/react/components/error_bar.jsx +++ b/web/react/components/error_bar.jsx @@ -9,12 +9,8 @@ export default class ErrorBar extends React.Component { this.onErrorChange = this.onErrorChange.bind(this); this.handleClose = this.handleClose.bind(this); - this.prevTimer = null; this.state = ErrorStore.getLastError(); - if (this.isValidError(this.state)) { - this.prevTimer = setTimeout(this.handleClose, 10000); - } } isValidError(s) { @@ -56,16 +52,8 @@ export default class ErrorBar extends React.Component { onErrorChange() { var newState = ErrorStore.getLastError(); - if (this.prevTimer != null) { - clearInterval(this.prevTimer); - this.prevTimer = null; - } - if (newState) { this.setState(newState); - if (!this.isConnectionError(newState)) { - this.prevTimer = setTimeout(this.handleClose, 10000); - } } else { this.setState({message: null}); } |