git.99rst.org
/
DailyTxT.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
bc00a27
)
fix: uploaded files get highlighted in calendar
author
PhiTux
<redacted>
Sat, 11 Oct 2025 22:12:44 +0000
(
00:12
+0200)
committer
PhiTux
<redacted>
Sat, 11 Oct 2025 22:12:44 +0000
(
00:12
+0200)
frontend/src/routes/(authed)/write/+page.svelte
patch
|
blob
|
history
diff --git
a/frontend/src/routes/(authed)/write/+page.svelte
b/frontend/src/routes/(authed)/write/+page.svelte
index 48a48ab4cc65c8cdaf6aa98fe622168d5810187f..c665cf4e19b73145b472a0cfec72bdff8c0d294d 100644
(file)
--- 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);
git clone https://git.99rst.org/PROJECT