don't highlight room header buttons when right panel is collapsed

This commit is contained in:
Bruno Windels 2018-12-18 15:36:54 +01:00
parent a10f0a3267
commit dafc54c434
3 changed files with 22 additions and 11 deletions

View file

@ -48,6 +48,17 @@ export default class HeaderButtons extends React.Component {
}, extras));
}
isPhase(phases) {
if (this.props.collapsedRhs) {
return false;
}
if (Array.isArray(phases)) {
return phases.includes(this.state.phase);
} else {
return phases === this.state.phase;
}
}
onAction(payload) {
if (payload.action === "view_right_panel_phase") {
// only actions coming from header buttons should collapse the right panel