mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
member is_admin.
This commit is contained in:
parent
3c09eaf0ad
commit
6177ffc242
@ -95,7 +95,7 @@
|
||||
<th>member.name</th>
|
||||
<td>{{ neko.state.member.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="ok">
|
||||
<th>member.is_admin</th>
|
||||
<td>{{ neko.state.member.is_admin }}</td>
|
||||
</tr>
|
||||
|
@ -81,6 +81,10 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
||||
console.log('EVENT.MEMBER.CONNECTED')
|
||||
this.emit('member.connected', member.id)
|
||||
//user.addMember(member)
|
||||
|
||||
if (member.id === this.state.member.id) {
|
||||
Vue.set(this.state.member, 'is_admin', member.admin)
|
||||
}
|
||||
}
|
||||
|
||||
protected [EVENT.MEMBER.DISCONNECTED]({ id }: MemberDisconnectPayload) {
|
||||
|
Loading…
Reference in New Issue
Block a user