forked from mystiq/hydrogen-web
Rename method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
e2443a8b09
commit
e10b455b27
1 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ export class SessionViewModel extends ViewModel {
|
||||||
if (!this._gridViewModel) {
|
if (!this._gridViewModel) {
|
||||||
this._updateRoom(roomId);
|
this._updateRoom(roomId);
|
||||||
}
|
}
|
||||||
this._toggleRoomDetailsPanel();
|
this._updateRoomDetails();
|
||||||
}));
|
}));
|
||||||
if (!this._gridViewModel) {
|
if (!this._gridViewModel) {
|
||||||
this._updateRoom(currentRoomId.get());
|
this._updateRoom(currentRoomId.get());
|
||||||
|
@ -82,8 +82,8 @@ export class SessionViewModel extends ViewModel {
|
||||||
this._updateLightbox(lightbox.get());
|
this._updateLightbox(lightbox.get());
|
||||||
|
|
||||||
const details = this.navigation.observe("details");
|
const details = this.navigation.observe("details");
|
||||||
this.track(details.subscribe(() => this._toggleRoomDetailsPanel()));
|
this.track(details.subscribe(() => this._updateRoomDetails()));
|
||||||
this._toggleRoomDetailsPanel();
|
this._updateRoomDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
get id() {
|
get id() {
|
||||||
|
@ -256,7 +256,7 @@ export class SessionViewModel extends ViewModel {
|
||||||
return room;
|
return room;
|
||||||
}
|
}
|
||||||
|
|
||||||
_toggleRoomDetailsPanel() {
|
_updateRoomDetails() {
|
||||||
this._roomDetailsViewModel = this.disposeTracked(this._roomDetailsViewModel);
|
this._roomDetailsViewModel = this.disposeTracked(this._roomDetailsViewModel);
|
||||||
const enable = !!this.navigation.path.get("details")?.value;
|
const enable = !!this.navigation.path.get("details")?.value;
|
||||||
if (enable) {
|
if (enable) {
|
||||||
|
|
Loading…
Reference in a new issue