reemit view_right_panel_phase when showing rhs, so right tab is active

This commit is contained in:
Bruno Windels 2018-12-18 16:27:17 +01:00
parent 92c598dbcf
commit c0ab74d5f1

View file

@ -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,