Rename setPhase to showOrHidePanel

This commit is contained in:
RMidhunSuresh
2023-09-12 20:48:29 +05:30
parent 89fa7b4b39
commit 919580fd10
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ export default class RightPanelStore extends ReadyWatchingStore {
* @param phase The right panel phase.
* @param cardState The state within the phase.
*/
public setPhase(phase: RightPanelPhases, cardState?: Partial<IRightPanelCardState>): void {
public showOrHidePanel(phase: RightPanelPhases, cardState?: Partial<IRightPanelCardState>): void {
if (this.currentCard.phase == phase && !cardState && this.isOpen) {
this.togglePanel(null);
} else {