summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_view.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-04-22 14:52:44 -0400
committerCorey Hulen <corey@hulen.com>2016-04-22 11:52:44 -0700
commitf73daebb61311efb966afdff75034a7f9c710fbf (patch)
tree0ad2923ade2991586a6f72a90d4a5148bba61be7 /webapp/components/channel_view.jsx
parente80bf13f48a9dba6815558ded39356b1cff584d2 (diff)
downloadchat-f73daebb61311efb966afdff75034a7f9c710fbf.tar.gz
chat-f73daebb61311efb966afdff75034a7f9c710fbf.tar.bz2
chat-f73daebb61311efb966afdff75034a7f9c710fbf.zip
PLT-1236 Added special handling for markdown links within mattermost (#2763)
* Added special handling for markdown links within mattermost * Moved application of .app__body class to route components
Diffstat (limited to 'webapp/components/channel_view.jsx')
-rw-r--r--webapp/components/channel_view.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/channel_view.jsx b/webapp/components/channel_view.jsx
index 00e1b7f35..45d0f2393 100644
--- a/webapp/components/channel_view.jsx
+++ b/webapp/components/channel_view.jsx
@@ -1,6 +1,7 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
+import $ from 'jquery';
import React from 'react';
import ChannelHeader from 'components/channel_header.jsx';
@@ -35,9 +36,13 @@ export default class ChannelView extends React.Component {
}
componentDidMount() {
ChannelStore.addChangeListener(this.updateState);
+
+ $('body').addClass('app__body');
}
componentWillUnmount() {
ChannelStore.removeChangeListener(this.updateState);
+
+ $('body').removeClass('app__body');
}
componentWillReceiveProps(nextProps) {
this.setState(this.getStateFromStores(nextProps));