mirror of
https://github.com/logseq/logseq.git
synced 2026-05-17 09:22:21 +00:00
fix(login): simplify user login handling for native platforms
This commit is contained in:
@@ -312,12 +312,10 @@
|
|||||||
(defmethod events/handle :user/logout [[_]]
|
(defmethod events/handle :user/logout [[_]]
|
||||||
(login/sign-out!))
|
(login/sign-out!))
|
||||||
|
|
||||||
(defmethod events/handle :user/login [[_ host-ui?]]
|
(defmethod events/handle :user/login [[_]]
|
||||||
(if (or host-ui? (not util/electron?))
|
(if (mobile-util/native-platform?)
|
||||||
(js/window.open config/LOGIN-URL)
|
(route-handler/redirect! {:to :user-login})
|
||||||
(if (mobile-util/native-platform?)
|
(login/open-login-modal!)))
|
||||||
(route-handler/redirect! {:to :user-login})
|
|
||||||
(login/open-login-modal!))))
|
|
||||||
|
|
||||||
(defmethod events/handle :asset/dialog-edit-external-url [[_ asset-block pdf-current]]
|
(defmethod events/handle :asset/dialog-edit-external-url [[_ asset-block pdf-current]]
|
||||||
(shui/dialog-open!
|
(shui/dialog-open!
|
||||||
|
|||||||
Reference in New Issue
Block a user