From 25fdacd46a4dc5f5166607777bbbcfd3cea87a63 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 13 Nov 2015 11:59:15 +0500 Subject: [PATCH] UI changes for Direct messages and Bad connection --- config/config.json | 2 +- web/react/components/more_direct_channels.jsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/config.json b/config/config.json index a927620b5c..dc35a369d0 100644 --- a/config/config.json +++ b/config/config.json @@ -9,7 +9,7 @@ "EnableOutgoingWebhooks": true, "EnablePostUsernameOverride": false, "EnablePostIconOverride": false, - "EnableTesting": false, + "EnableTesting": true, "EnableSecurityFixAlert": true }, "TeamSettings": { diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index 40deb37f28..d1265f67eb 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -50,6 +50,10 @@ export default class MoreDirectChannels extends React.Component { handleFilterChange() { const filter = ReactDOM.findDOMNode(this.refs.filter).value; + if ($(window).width() > 768) { + $(ReactDOM.findDOMNode(this.refs.userList)).scrollTop(0); + } + if (filter !== this.state.filter) { this.setState({filter}); }