add member create & delete.

This commit is contained in:
Miroslav Šedivý 2020-12-02 13:52:02 +01:00
parent 2a6a65144c
commit 38703f89b6

View File

@ -224,6 +224,15 @@
this.websocket.send('screen/set', { width, height, rate }) 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 // Component lifecycle
///////////////////////////// /////////////////////////////