From 38b670d2de2b79a816c09ca16f6e8f801cd93af1 Mon Sep 17 00:00:00 2001 From: Anahita Date: Sun, 19 Jan 2025 16:34:22 +0100 Subject: [PATCH 1/2] show event link --- src/routes/(app)/events/Event.svelte | 16 ++++++++++++++++ src/routes/(app)/events/SmallEventCard.svelte | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/routes/(app)/events/Event.svelte b/src/routes/(app)/events/Event.svelte index 6b60d7bc..c55ae91a 100644 --- a/src/routes/(app)/events/Event.svelte +++ b/src/routes/(app)/events/Event.svelte @@ -14,6 +14,7 @@ | "imageUrl" | "isCancelled" | "location" + | "link" > & Partial>; @@ -56,6 +57,21 @@ {/if} +{#if event.link} +
+ +
+{/if} diff --git a/src/routes/(app)/events/SmallEventCard.svelte b/src/routes/(app)/events/SmallEventCard.svelte index b9cf6686..1c34c3b5 100644 --- a/src/routes/(app)/events/SmallEventCard.svelte +++ b/src/routes/(app)/events/SmallEventCard.svelte @@ -89,6 +89,21 @@ {/if} + {#if event.link} +
+ +
+ {/if} Date: Sun, 19 Jan 2025 17:06:09 +0100 Subject: [PATCH 2/2] edit EventEditor.svelte --- src/routes/(app)/events/EventEditor.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/(app)/events/EventEditor.svelte b/src/routes/(app)/events/EventEditor.svelte index 3c8e6f2d..243f9fa6 100644 --- a/src/routes/(app)/events/EventEditor.svelte +++ b/src/routes/(app)/events/EventEditor.svelte @@ -260,6 +260,7 @@ ? URL.createObjectURL($form.image) : ($form.imageUrl ?? null), location: $form.location, // Pass location to Event component + link: $form.link, }} >