mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
enhance(mobile): redirect to journals tab when switched graph
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
[frontend.mobile.util :as mobile-util]
|
||||
[frontend.modules.instrumentation.sentry :as sentry-event]
|
||||
[frontend.state :as state]
|
||||
[capacitor.state :as cc-state]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.util :as util]
|
||||
[goog.dom :as gdom]
|
||||
@@ -86,7 +87,9 @@
|
||||
{:id :https-proxy-panel :center? true :class "lg:max-w-2xl"}))
|
||||
|
||||
(defmethod events/handle :redirect-to-home [_]
|
||||
(page-handler/create-today-journal!))
|
||||
(page-handler/create-today-journal!)
|
||||
(when (util/capacitor-new?)
|
||||
(cc-state/redirect-to-tab! "home")))
|
||||
|
||||
(defmethod events/handle :page/show-delete-dialog [[_ selected-rows ok-handler]]
|
||||
(shui/dialog-open!
|
||||
|
||||
Reference in New Issue
Block a user