From e39572b98ba4b459dad5a12073848a4a860a5c5a Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 23 May 2021 17:18:14 +0530 Subject: [PATCH] Create RoomInformationView on toggle Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/SessionView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/web/ui/session/SessionView.js b/src/platform/web/ui/session/SessionView.js index c8a77a1b..1208e0b3 100644 --- a/src/platform/web/ui/session/SessionView.js +++ b/src/platform/web/ui/session/SessionView.js @@ -25,6 +25,7 @@ import {StaticView} from "../general/StaticView.js"; import {SessionStatusView} from "./SessionStatusView.js"; import {RoomGridView} from "./RoomGridView.js"; import {SettingsView} from "./settings/SettingsView.js"; +import { RoomInfoView } from "./rightpanel/RoomInfoView.js"; export class SessionView extends TemplateView { render(t, vm) { @@ -53,6 +54,7 @@ export class SessionView extends TemplateView { return new StaticView(t => t.div({className: "room-placeholder"}, t.h2(vm.i18n`Choose a room on the left side.`))); } }), + t.mapView(vm => vm.roomInfoViewModel, roomInfoViewModel => roomInfoViewModel ? new RoomInfoView(roomInfoViewModel) : null), t.mapView(vm => vm.lightboxViewModel, lightboxViewModel => lightboxViewModel ? new LightboxView(lightboxViewModel) : null) ]); }