feat: enhance attachment handling with new localization strings and GPX upload tips
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user