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

feat: enhance attachment handling with new localization strings and GPX upload tips

This commit is contained in:
Sean Morley 2025-01-21 19:33:48 -05:00
parent 1b3cf6ab39
commit 6e28e5234e
13 changed files with 142 additions and 19 deletions

View file

@ -997,7 +997,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
<input
type="text"
class="input input-bordered w-full"
placeholder="Attachment Name"
placeholder={$t('adventures.attachment_name')}
bind:value={attachmentName}
/>
<button type="submit" class="btn btn-neutral">{$t('adventures.upload')}</button>
@ -1014,7 +1014,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
<input
type="text"
class="input input-bordered w-full"
placeholder="Attachment Name"
placeholder={$t('adventures.attachment_name')}
bind:value={attachmentToEdit.name}
/>
<button type="submit" class="btn btn-neutral"

View file

@ -75,13 +75,15 @@
{attachment.name}
</span>
<div class="flex space-x-2">
<button
class="btn btn-sm btn-secondary btn-outline"
type="button"
on:click={() => window.open(attachment.file, '_blank')}
>
{$t('notes.open')}
</button>
{#if !allowEdit}
<button
class="btn btn-sm btn-secondary btn-outline"
type="button"
on:click={() => window.open(attachment.file, '_blank')}
>
{$t('notes.open')}
</button>
{/if}
{#if allowEdit}
<button
class="btn btn-sm btn-info btn-outline"