diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 00008039..a0028674 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -288,13 +288,10 @@ export class RoomViewModel extends ViewModel { } } - toggleDetailsPanel() { - const isPanelOpen = !!this.navigation.path.get("details"); - const link = isPanelOpen ? this.urlCreator.urlUntilSegment("room"): - this.urlCreator.urlForSegment("details"); - window.location.href = link; + get detailsLink() { + return this.urlCreator.urlForSegment("details"); } - + get composerViewModel() { return this._composerVM; } diff --git a/src/platform/web/ui/session/room/RoomView.js b/src/platform/web/ui/session/room/RoomView.js index dc8335e0..3b775c82 100644 --- a/src/platform/web/ui/session/room/RoomView.js +++ b/src/platform/web/ui/session/room/RoomView.js @@ -77,6 +77,7 @@ export class RoomView extends TemplateView { if (vm.canRejoin) { options.push(Menu.optionWithButton(vm.i18n`Rejoin room`, () => vm.rejoinRoom())); } + options.push(Menu.optionWithLink(vm.i18n`Room Details`, vm.detailsLink)) if (!options.length) { return; }