From 8fee537d8b08f5f1a6e08e2f22f48ded1e7af44d Mon Sep 17 00:00:00 2001 From: Lars Lehmann Date: Thu, 23 Jan 2025 21:56:19 +0100 Subject: [PATCH] feat: Open collection calendar on start date --- frontend/src/routes/collections/[id]/+page.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index dea338f..c9b4660 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -164,6 +164,9 @@ (new Date(collection.end_date).getTime() - new Date(collection.start_date).getTime()) / (1000 * 60 * 60 * 24) ) + 1; + + // Update `options.evdateents` when `collection.start_date` changes + options = { ...options, date: collection.start_date }; } if (collection.transportations) { transportations = collection.transportations;