Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 8125793

Browse files
authored
Set header buttons to no phase when right panel is closed (#7506)
1 parent f6effc5 commit 8125793

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/right_panel/HeaderButtons.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export default abstract class HeaderButtons<P = {}> extends React.Component<IPro
8080
}
8181
}
8282

83-
public isPhase(phases: string | string[]) {
83+
public isPhase(phases: string | string[]): boolean {
84+
if (!RightPanelStore.instance.isOpenForRoom) return false;
8485
if (Array.isArray(phases)) {
8586
return phases.includes(this.state.phase);
8687
} else {

0 commit comments

Comments
 (0)