mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: frontend code shouldn't require mobile ns
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
[goog.dom :as gdom]
|
||||
[logseq.common.util :as common-util]
|
||||
[logseq.shui.ui :as shui]
|
||||
[mobile.state :as mobile-state]
|
||||
[promesa.core :as p]))
|
||||
|
||||
(defmethod events/handle :go/search [_]
|
||||
@@ -91,7 +90,7 @@
|
||||
(defmethod events/handle :redirect-to-home [_]
|
||||
(page-handler/create-today-journal!)
|
||||
(when (util/capacitor?)
|
||||
(mobile-state/set-tab! "home")))
|
||||
(state/pub-event! [:mobile/set-tab "home"])))
|
||||
|
||||
(defmethod events/handle :page/show-delete-dialog [[_ selected-rows ok-handler]]
|
||||
(shui/dialog-open!
|
||||
|
||||
Reference in New Issue
Block a user