Skip to content

Commit

Permalink
fix: with the journal disabled, the top home button goes to the
Browse files Browse the repository at this point in the history
journal page

close logseq#5749
  • Loading branch information
tiensonqin committed Jun 20, 2022
1 parent 69ba152 commit fe1419a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe1419a

Please sign in to comment.