1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 15:59:38 +02:00

feat: refactor AttachmentCard component to handle delete action locally and simplify adventure page logic

This commit is contained in:
Sean Morley 2025-01-20 09:01:11 -05:00
parent 25edec460b
commit 30c58ca118
2 changed files with 4 additions and 10 deletions

View file

@ -90,10 +90,10 @@
>
{$t('transportation.edit')}
</button>
<button class="btn btn-sm btn-danger btn-outline" type="button" on:click={deleteAttachment}>
{$t('adventures.delete')}
</button>
{/if}
<button class="btn btn-sm btn-danger btn-outline" type="button" on:click={deleteAttachment}>
{$t('adventures.delete')}
</button>
</div>
</div>
</div>