feat: and the ability to duplicate chords

resolves #100
This commit is contained in:
2024-04-23 18:21:04 +02:00
parent 20b65813bf
commit 26dcc56aca
2 changed files with 33 additions and 2 deletions

View File

@@ -196,7 +196,7 @@
{#each $items.slice(page * $pageSize - (page === 0 ? 0 : 1), (page + 1) * $pageSize - 1) as [chord] (JSON.stringify(chord?.id))}
{#if chord}
<tr>
<ChordEdit {chord} />
<ChordEdit {chord} on:duplicate={() => (page = 0)} />
</tr>
{/if}
{/each}