take buttons into account that are active over multiple phases when toggling
This commit is contained in:
parent
02792132e1
commit
483b7fc14d
3 changed files with 23 additions and 23 deletions
|
@ -60,8 +60,8 @@ export default class HeaderButtons extends React.Component {
|
|||
}, extras));
|
||||
}
|
||||
|
||||
togglePhase(phase) {
|
||||
if (this.state.phase === phase) {
|
||||
togglePhase(phase, validPhases = [phase]) {
|
||||
if (validPhases.includes(this.state.phase)) {
|
||||
dis.dispatch({
|
||||
action: 'hide_right_panel',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue