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

collections v2

This commit is contained in:
Sean Morley 2024-07-15 12:09:20 -04:00
parent 533453b764
commit e533dda328
11 changed files with 332 additions and 102 deletions

View file

@ -10,6 +10,7 @@
import Calendar from '~icons/mdi/calendar';
import MapMarker from '~icons/mdi/map-marker';
import { addToast } from '$lib/toasts';
import Link from '~icons/mdi/link-variant';
export let type: string;
@ -34,6 +35,10 @@
function editAdventure() {
dispatch('edit', adventure);
}
function link() {
dispatch('link', adventure);
}
</script>
<div
@ -100,6 +105,9 @@
><TrashCan class="w-6 h-6" /></button
>
{/if}
{#if type == 'link'}
<button class="btn btn-primary" on:click={link}><Link class="w-6 h-6" /></button>
{/if}
</div>
</div>
</div>