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:
parent
6289c7e305
commit
e9084db832
1 changed files with 1 additions and 9 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue