enhance: create today's page if it doesn't exist when scrolling to

the top of journals page
pull/3239/head
Tienson Qin 2021-11-22 20:09:04 +08:00
parent 0db47304ef
commit 3d9b67b3da
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@
[:div.journal-item.content {:key journal-name}
(journal-cp [journal-name format])])
{:has-more (page-handler/has-more-journals?)
:on-top-reached page-handler/create-today-journal!
:on-load (fn []
(page-handler/load-more-journals!))})])