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

fix: remove default adventure type and streamline image upload form

This commit is contained in:
Sean Morley 2025-01-17 17:33:16 -05:00
parent 6289c7e305
commit e9084db832

View file

@ -48,7 +48,6 @@
let adventure: Adventure = {
id: '',
name: '',
type: 'visited',
visits: [],
link: null,
description: null,
@ -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 || [],
@ -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"