show member count and topic for room preview

This commit is contained in:
Bruno Windels
2020-12-02 13:00:26 +01:00
parent 173696f46e
commit 7114e5a1ef
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -27,6 +27,8 @@ export class PreviewView extends TemplateView {
t.p(t.img({className: "avatar", src: vm => vm.avatarUrl})),
t.h1(vm => vm.name),
t.p(vm => vm.identifier),
t.p({className: {hidden: vm => !vm.memberCount}}, [vm => vm.memberCount, " members"]),
t.p({className: {hidden: vm => !vm.topic}}, [vm => vm.topic]),
]),
t.p({className: {hidden: vm => vm.clientsViewModel}}, t.button({
className: "primary fullwidth",