mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-25 15:59:38 +02:00
feat: implement global search functionality for adventures, collections, users, and locations
This commit is contained in:
parent
9132ef39ec
commit
d60945d5b7
10 changed files with 186 additions and 209 deletions
|
@ -289,6 +289,7 @@
|
|||
let res = await fetch(imageUrl);
|
||||
let blob = await res.blob();
|
||||
let file = new File([blob], `${imageSearch}.jpg`, { type: 'image/jpeg' });
|
||||
wikiImageError = '';
|
||||
let formData = new FormData();
|
||||
formData.append('image', file);
|
||||
formData.append('adventure', adventure.id);
|
||||
|
@ -1097,6 +1098,9 @@ it would also work to just use on:click on the MapLibre component itself. -->
|
|||
{$t('adventures.fetch_image')}
|
||||
</button>
|
||||
</div>
|
||||
{#if wikiImageError}
|
||||
<p class="text-red-500">{$t('adventures.wiki_image_error')}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if immichIntegration}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue