From 38703f89b6adcebd7759e71016e2ec6fd55c342e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 2 Dec 2020 13:52:02 +0100 Subject: [PATCH] add member create & delete. --- src/component/main.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/component/main.vue b/src/component/main.vue index 323519ea..3c2a0ac9 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -224,6 +224,15 @@ this.websocket.send('screen/set', { width, height, rate }) } + public memberCreate({ id, secret, name, isAdmin }: { id: string; secret: string; name: string; isAdmin: boolean }) { + const memberDataPayload = { id, secret, name, isAdmin } + this.api.admin.membersCreate({ memberDataPayload }) + } + + public memberDelete(memberId: string) { + this.api.admin.membersDelete({ memberId }) + } + ///////////////////////////// // Component lifecycle /////////////////////////////