diff --git a/frontend/src/lib/components/ActivityComplete.svelte b/frontend/src/lib/components/ActivityComplete.svelte new file mode 100644 index 0000000..53d4cd2 --- /dev/null +++ b/frontend/src/lib/components/ActivityComplete.svelte @@ -0,0 +1,89 @@ + + +
+ { + if (e.key === 'Enter') { + e.preventDefault(); + addActivity(); + } + }} + /> + {#if inputVal && filteredItems.length > 0} + + {/if} +
+ +
+ +
diff --git a/frontend/src/lib/components/EditAdventure.svelte b/frontend/src/lib/components/EditAdventure.svelte index d6d62ee..b3fe39e 100644 --- a/frontend/src/lib/components/EditAdventure.svelte +++ b/frontend/src/lib/components/EditAdventure.svelte @@ -27,6 +27,7 @@ import Earth from '~icons/mdi/earth'; import Wikipedia from '~icons/mdi/wikipedia'; import ImageFetcher from './ImageFetcher.svelte'; + import ActivityComplete from './ActivityComplete.svelte'; onMount(async () => { modal = document.getElementById('my_modal_1') as HTMLDialogElement; @@ -213,9 +214,11 @@ type="text" id="activity_types" name="activity_types" + hidden bind:value={adventureToEdit.activity_types} class="input input-bordered w-full max-w-xs mt-1" /> +