reemit view_right_panel_phase when showing rhs, so right tab is active

pull/21833/head
Bruno Windels 2018-12-18 16:27:17 +01:00
parent 92c598dbcf
commit c0ab74d5f1
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ export default class HeaderButtons extends React.Component {
dis.dispatch({ dis.dispatch({
action: 'show_right_panel', 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({ this.setState({
phase: payload.phase, phase: payload.phase,