Преглед изворни кода

fix: with the journal disabled, the top home button goes to the
journal page

close #5749

Tienson Qin пре 3 година
родитељ
комит
fe1419a4d2
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      src/main/frontend/components/header.cljs

+ 2 - 3
src/main/frontend/components/header.cljs

@@ -26,11 +26,10 @@
 (rum/defc home-button []
   (ui/with-shortcut :go/home "left"
     [:button.button.icon.inline
-     {:href     (rfe/href :home)
-      :on-click #(do
+     {:on-click #(do
                    (when (mobile-util/native-iphone?)
                      (state/set-left-sidebar-open! false))
-                   (route-handler/go-to-journals!))}
+                   (route-handler/redirect-to-home!))}
      (ui/icon "home" {:style {:fontSize ui/icon-size}})]))
 
 (rum/defc login < rum/reactive