mirror of https://github.com/vector-im/riot-web
Set header buttons to no phase when right panel is closed (#7506)
parent
f6effc52fd
commit
81257933ef
|
@ -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…
Reference in New Issue