Browse Source

Disable chat input when websocket disconnects. Closes #174

pull/184/head
Gabe Kangas 5 years ago
parent
commit
5af0afa2a0
  1. 6
      webroot/js/components/chat/chat.js

6
webroot/js/components/chat/chat.js

@ -123,9 +123,11 @@ export default class Chat extends Component { @@ -123,9 +123,11 @@ export default class Chat extends Component {
this.setState(newState);
}
}
websocketDisconnected() {
// this.websocket = null;
this.disableChat();
this.setState({
inputEnabled: false,
});
}
submitChat(content) {

Loading…
Cancel
Save