only re-show right panel if it was visible before we were mounted

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-04-21 14:01:04 +01:00
parent b6ca16fc2f
commit 64112da25c

View file

@ -55,9 +55,13 @@ module.exports = React.createClass({
componentWillUnmount: function() { componentWillUnmount: function() {
this._unmounted = true; this._unmounted = true;
if (!this.props.collapsedRhs) {
dis.dispatch({ dis.dispatch({
action: 'show_right_panel', action: 'show_right_panel',
}); });
}
dis.dispatch({ dis.dispatch({
action: 'ui_opacity', action: 'ui_opacity',
sideOpacity: 1.0, sideOpacity: 1.0,