Browse Source

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

the top of journals page
Tienson Qin 4 years ago
parent
commit
3d9b67b3da
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/components/journal.cljs

+ 1 - 0
src/main/frontend/components/journal.cljs

@@ -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!))})])