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">
|
<script lang="ts">
|
||||||
export let estimates: any;
|
export let estimates: any;
|
||||||
export let handleEstimateChange: any;
|
export let handleEstimateChange: any;
|
||||||
|
export let currentUserIndex: number;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="users-list">
|
<div id="users-list">
|
||||||
<h2>Users</h2>
|
<h2>Users</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{#each estimates as user}
|
{#each estimates as user, index}
|
||||||
<li>
|
<li>
|
||||||
{user.name}
|
{user.name}
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
value={user.estimate}
|
value={user.estimate}
|
||||||
on:input={(e) => handleEstimateChange(e, user)}
|
on:input={(e) => handleEstimateChange(e, user)}
|
||||||
|
disabled={currentUserIndex !== index ? true : null}
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user