1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 21:39:37 +02:00

Add link field to collection and fix the visited counter in collection page

This commit is contained in:
Sean Morley 2024-10-07 23:16:27 -04:00
parent 7d9bc16588
commit 1e61032692
8 changed files with 68 additions and 14 deletions

View file

@ -13,7 +13,9 @@
name: '',
description: '',
adventures: [] as Adventure[],
is_public: false
is_public: false,
shared_with: [],
link: ''
};
const dispatch = createEventDispatcher();
@ -151,6 +153,16 @@
class="input input-bordered w-full max-w-xs mt-1"
/>
</div>
<div class="mb-2">
<label for="end_date">Link </label><br />
<input
type="url"
id="link"
name="link"
bind:value={newCollection.link}
class="input input-bordered w-full max-w-xs mt-1"
/>
</div>
<div class="mb-2">
<button type="submit" class="btn btn-primary mr-4 mt-4">Create</button>
<button type="button" class="btn mt-4" on:click={close}>Close</button>