diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 20ba8034..00008039 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -287,6 +287,13 @@ export class RoomViewModel extends ViewModel { console.error(err.stack); } } + + toggleDetailsPanel() { + const isPanelOpen = !!this.navigation.path.get("details"); + const link = isPanelOpen ? this.urlCreator.urlUntilSegment("room"): + this.urlCreator.urlForSegment("details"); + window.location.href = link; + } get composerViewModel() { return this._composerVM;