mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-12 18:43:47 +00:00
feat(*): Add user indices to user list component
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
<script lang="ts">
|
||||
export let estimates: any;
|
||||
export let handleEstimateChange: any;
|
||||
export let currentUserIndex: number;
|
||||
</script>
|
||||
|
||||
<div id="users-list">
|
||||
<h2>Users</h2>
|
||||
<ul>
|
||||
{#each estimates as user}
|
||||
{#each estimates as user, index}
|
||||
<li>
|
||||
{user.name}
|
||||
<input
|
||||
type="number"
|
||||
value={user.estimate}
|
||||
on:input={(e) => handleEstimateChange(e, user)}
|
||||
disabled={currentUserIndex !== index ? true : null}
|
||||
/>
|
||||
</li>
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user