fix: uploaded files get highlighted in calendar
authorPhiTux <redacted>
Sat, 11 Oct 2025 22:12:44 +0000 (00:12 +0200)
committerPhiTux <redacted>
Sat, 11 Oct 2025 22:12:44 +0000 (00:12 +0200)
frontend/src/routes/(authed)/write/+page.svelte

index 48a48ab4cc65c8cdaf6aa98fe622168d5810187f..c665cf4e19b73145b472a0cfec72bdff8c0d294d 100644 (file)
                        .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);
git clone https://git.99rst.org/PROJECT