Skip to content

Commit

Permalink
fix: remove default adventure type and streamline image upload form
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Jan 17, 2025
1 parent 6289c7e commit e9084db
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions frontend/src/lib/components/AdventureModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
let adventure: Adventure = {
id: '',
name: '',
type: 'visited',
visits: [],
link: null,
description: null,
Expand All @@ -75,7 +74,6 @@
adventure = {
id: adventureToEdit?.id || '',
name: adventureToEdit?.name || '',
type: adventureToEdit?.type || 'general',
link: adventureToEdit?.link || null,
description: adventureToEdit?.description || null,
activity_types: adventureToEdit?.activity_types || [],
Expand Down Expand Up @@ -1045,13 +1043,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
<label for="image" class="block font-medium mb-2">
{$t('adventures.image')}
</label>
<form
method="POST"
action="/adventures?/image"
use:enhance={imageSubmit}
enctype="multipart/form-data"
class="flex flex-col items-start gap-2"
>
<form class="flex flex-col items-start gap-2">
<input
type="file"
name="image"
Expand Down

0 comments on commit e9084db

Please sign in to comment.