From 5cacdcfee0d3c9a6d3664cd5e86dead7d8cef96f Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Mon, 11 Apr 2022 15:55:02 +0200 Subject: [PATCH] Add leave button to call view --- src/platform/web/ui/session/room/CallView.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/web/ui/session/room/CallView.ts b/src/platform/web/ui/session/room/CallView.ts index ae7b4138..f8386116 100644 --- a/src/platform/web/ui/session/room/CallView.ts +++ b/src/platform/web/ui/session/room/CallView.ts @@ -34,7 +34,10 @@ export class CallView extends TemplateView { return t.div({class: "CallView"}, [ t.p(vm => `Call ${vm.name} (${vm.id})`), t.div({class: "CallView_me"}, bindVideoTracks(t, t.video({autoplay: true, width: 240}), vm => vm.localTracks)), - t.view(new ListView({list: vm.memberViewModels}, vm => new MemberView(vm))) + t.view(new ListView({list: vm.memberViewModels}, vm => new MemberView(vm))), + t.div({class: "buttons"}, [ + t.button({onClick: () => vm.leave()}, "Leave") + ]) ]); } }