mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add member create & delete.
This commit is contained in:
parent
2a6a65144c
commit
38703f89b6
@ -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
|
||||
/////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user