Skip to content

Commit

Permalink
Wrapped delete buttons in div
Browse files Browse the repository at this point in the history
  • Loading branch information
mugendi committed Oct 4, 2024
1 parent cd08178 commit 35b2542
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/routes/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@
{#each directories as { document }}
<div>
<span>{document.directory} &nbsp;</span>
<button on:click={deleteDir(document.id)}>
{@html deleteIcon}
</button>
<div>
<button on:click={deleteDir(document.id)}>
{@html deleteIcon}
</button>
</div>
</div>
{/each}
</div>

<br />

<h4>Add New</h4>
<form method="POST" action="/api/directory" on:submit|preventDefault={handleAddDirectory}>
<div class="field">
Expand All @@ -103,7 +105,6 @@
<button title="Index Files" on:click={indexFiles} disabled={directories.length === 0}>
Index Files
</button>

</div>
</div>

Expand Down

0 comments on commit 35b2542

Please sign in to comment.