From 5af0afa2a0965b0c8a4a436e13dec84c8a7568f7 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 22 Sep 2020 01:22:49 -0700 Subject: [PATCH] Disable chat input when websocket disconnects. Closes #174 --- webroot/js/components/chat/chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js index 014ddffc4..05cb2f865 100644 --- a/webroot/js/components/chat/chat.js +++ b/webroot/js/components/chat/chat.js @@ -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) {