Set header buttons to no phase when right panel is closed (#7506)
This commit is contained in:
parent
f6effc52fd
commit
81257933ef
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ export default abstract class HeaderButtons<P = {}> extends React.Component<IPro
|
|||
}
|
||||
}
|
||||
|
||||
public isPhase(phases: string | string[]) {
|
||||
public isPhase(phases: string | string[]): boolean {
|
||||
if (!RightPanelStore.instance.isOpenForRoom) return false;
|
||||
if (Array.isArray(phases)) {
|
||||
return phases.includes(this.state.phase);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue