From: PhiTux Date: Sat, 11 Oct 2025 22:12:44 +0000 (+0200) Subject: fix: uploaded files get highlighted in calendar X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ac14d392dfbd2eba0b55c6defb9568d21f10893c;p=DailyTxT.git fix: uploaded files get highlighted in calendar --- diff --git a/frontend/src/routes/(authed)/write/+page.svelte b/frontend/src/routes/(authed)/write/+page.svelte index 48a48ab..c665cf4 100644 --- a/frontend/src/routes/(authed)/write/+page.svelte +++ b/frontend/src/routes/(authed)/write/+page.svelte @@ -619,6 +619,11 @@ .then(() => { // append to filesOfDay filesOfDay = [...filesOfDay, { filename: f.name, size: f.size, uuid_filename: uuid }]; + + // add to calendar + if (!$cal.daysWithFiles.includes($selectedDate.day)) { + $cal.daysWithFiles = [...$cal.daysWithFiles, $selectedDate.day]; + } }) .catch((error) => { console.error(error);