From 0ac3d3727b8856af0fd4595444e8f921ae0c7967 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 15 Jul 2021 21:40:34 +0530 Subject: [PATCH] Remove TemplateView Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/rightpanel/MemberListView.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/platform/web/ui/session/rightpanel/MemberListView.js b/src/platform/web/ui/session/rightpanel/MemberListView.js index 5667c20e..77235249 100644 --- a/src/platform/web/ui/session/rightpanel/MemberListView.js +++ b/src/platform/web/ui/session/rightpanel/MemberListView.js @@ -1,13 +1,12 @@ -import {TemplateView} from "../../general/TemplateView.js"; import {LazyListView} from "../../general/LazyListView.js"; import {MemberTileView} from "./MemberTileView.js"; -export class MemberListView extends TemplateView { - render(t, vm) { - return t.view(new LazyListView({ +export class MemberListView extends LazyListView{ + constructor(vm) { + super({ list: vm.memberTileViewModels, className: "MemberListView", itemHeight: 40 - }, tileViewModel => new MemberTileView(tileViewModel))); + }, tileViewModel => new MemberTileView(tileViewModel)); } }