mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 02:53:46 +00:00
feat(#25): Add ability to kick a user
This commit is contained in:
@@ -97,6 +97,14 @@
|
||||
});
|
||||
}
|
||||
|
||||
function handleKickUser(userId: string) {
|
||||
console.log('sending kick-user message');
|
||||
sendMessage(socket, {
|
||||
type: 'kick-user',
|
||||
userId
|
||||
});
|
||||
}
|
||||
|
||||
function restartEstimation() {
|
||||
sendMessage(socket, { roomId: data.roomId, type: 'restart-estimation' });
|
||||
}
|
||||
@@ -167,7 +175,7 @@
|
||||
<Modal {closeModal} {joinRoom} />
|
||||
{/if}
|
||||
|
||||
<UsersList bind:this={usersList} {users} {showEstimates} {userId} {handleEmojiTrigger} />
|
||||
<UsersList bind:this={usersList} {users} {showEstimates} {userId} {handleEmojiTrigger} {handleKickUser} />
|
||||
|
||||
<div class="button-container">
|
||||
{#if showRestartButton}
|
||||
|
||||
Reference in New Issue
Block a user