From e10b455b2737cde833ae34627822466b31b58fad Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 14 Jun 2021 20:32:05 +0530 Subject: [PATCH] Rename method Signed-off-by: RMidhunSuresh --- src/domain/session/SessionViewModel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index e5755a21..12f80f8b 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -63,7 +63,7 @@ export class SessionViewModel extends ViewModel { if (!this._gridViewModel) { this._updateRoom(roomId); } - this._toggleRoomDetailsPanel(); + this._updateRoomDetails(); })); if (!this._gridViewModel) { this._updateRoom(currentRoomId.get()); @@ -82,8 +82,8 @@ export class SessionViewModel extends ViewModel { this._updateLightbox(lightbox.get()); const details = this.navigation.observe("details"); - this.track(details.subscribe(() => this._toggleRoomDetailsPanel())); - this._toggleRoomDetailsPanel(); + this.track(details.subscribe(() => this._updateRoomDetails())); + this._updateRoomDetails(); } get id() { @@ -256,7 +256,7 @@ export class SessionViewModel extends ViewModel { return room; } - _toggleRoomDetailsPanel() { + _updateRoomDetails() { this._roomDetailsViewModel = this.disposeTracked(this._roomDetailsViewModel); const enable = !!this.navigation.path.get("details")?.value; if (enable) {