From 35992ac2fc76b3666deeeb66d243d9f02e16ca82 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 21 Apr 2021 17:50:41 +0200 Subject: [PATCH] show very basic buttons to accept or reject invite --- src/platform/web/ui/session/room/InviteView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/web/ui/session/room/InviteView.js b/src/platform/web/ui/session/room/InviteView.js index 8fdf6cf7..ae241be2 100644 --- a/src/platform/web/ui/session/room/InviteView.js +++ b/src/platform/web/ui/session/room/InviteView.js @@ -33,7 +33,11 @@ export class InviteView extends TemplateView { ]), ]), t.div({className: "RoomView_error"}, vm => vm.error), - t.div(`You were invited into this room!`) + t.div([ + t.p(`You were invited into this room!`), + t.p(t.button({onClick: () => vm.accept()}, vm.i18n`Accept`)), + t.p(t.button({onClick: () => vm.reject()}, vm.i18n`Reject`)), + ]) ]) ]); }