From c0ab74d5f1cf32b96e7fc50f64c4c3df2d5968a3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 Dec 2018 16:27:17 +0100 Subject: [PATCH] reemit view_right_panel_phase when showing rhs, so right tab is active --- src/components/views/right_panel/HeaderButtons.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/views/right_panel/HeaderButtons.js b/src/components/views/right_panel/HeaderButtons.js index 3e3bbd3cd2..f0479eb8be 100644 --- a/src/components/views/right_panel/HeaderButtons.js +++ b/src/components/views/right_panel/HeaderButtons.js @@ -74,6 +74,11 @@ export default class HeaderButtons extends React.Component { dis.dispatch({ action: 'show_right_panel', }); + // emit payload again as the RightPanel didn't exist up + // till show_right_panel, just without the fromHeader flag + // as that would hide the right panel again + dis.dispatch(Object.assign({}, payload, {fromHeader: false})); + } this.setState({ phase: payload.phase,