mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-30 10:19:37 +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 = {
|
let adventure: Adventure = {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
type: 'visited',
|
|
||||||
visits: [],
|
visits: [],
|
||||||
link: null,
|
link: null,
|
||||||
description: null,
|
description: null,
|
||||||
|
@ -75,7 +74,6 @@
|
||||||
adventure = {
|
adventure = {
|
||||||
id: adventureToEdit?.id || '',
|
id: adventureToEdit?.id || '',
|
||||||
name: adventureToEdit?.name || '',
|
name: adventureToEdit?.name || '',
|
||||||
type: adventureToEdit?.type || 'general',
|
|
||||||
link: adventureToEdit?.link || null,
|
link: adventureToEdit?.link || null,
|
||||||
description: adventureToEdit?.description || null,
|
description: adventureToEdit?.description || null,
|
||||||
activity_types: adventureToEdit?.activity_types || [],
|
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">
|
<label for="image" class="block font-medium mb-2">
|
||||||
{$t('adventures.image')}
|
{$t('adventures.image')}
|
||||||
</label>
|
</label>
|
||||||
<form
|
<form class="flex flex-col items-start gap-2">
|
||||||
method="POST"
|
|
||||||
action="/adventures?/image"
|
|
||||||
use:enhance={imageSubmit}
|
|
||||||
enctype="multipart/form-data"
|
|
||||||
class="flex flex-col items-start gap-2"
|
|
||||||
>
|
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
name="image"
|
name="image"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue