From 00dbd3db060eb57bbcdd35ede7888984da82455b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 31 May 2021 22:54:52 +0530 Subject: [PATCH] Add menu entry to launch RoomInfoView Signed-off-by: RMidhunSuresh --- src/domain/session/room/RoomViewModel.js | 9 +++------ src/platform/web/ui/session/room/RoomView.js | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) 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; }