diff options
Diffstat (limited to 'webapp/components/permalink_view.jsx')
-rw-r--r-- | webapp/components/permalink_view.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/permalink_view.jsx b/webapp/components/permalink_view.jsx index 2c32d643d..07f826d57 100644 --- a/webapp/components/permalink_view.jsx +++ b/webapp/components/permalink_view.jsx @@ -1,6 +1,7 @@ // Copyright (c) 2016 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'; @@ -45,10 +46,14 @@ export default class PermalinkView extends React.Component { componentDidMount() { ChannelStore.addChangeListener(this.updateState); TeamStore.addChangeListener(this.updateState); + + $('body').addClass('app__body'); } componentWillUnmount() { ChannelStore.removeChangeListener(this.updateState); TeamStore.removeChangeListener(this.updateState); + + $('body').removeClass('app__body'); } componentWillReceiveProps(nextProps) { this.setState(this.getStateFromStores(nextProps)); |