mirror of
https://github.com/logseq/logseq.git
synced 2026-05-17 01:12:28 +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 [[_]]
|
||||
(login/sign-out!))
|
||||
|
||||
(defmethod events/handle :user/login [[_ host-ui?]]
|
||||
(if (or host-ui? (not util/electron?))
|
||||
(js/window.open config/LOGIN-URL)
|
||||
(if (mobile-util/native-platform?)
|
||||
(route-handler/redirect! {:to :user-login})
|
||||
(login/open-login-modal!))))
|
||||
(defmethod events/handle :user/login [[_]]
|
||||
(if (mobile-util/native-platform?)
|
||||
(route-handler/redirect! {:to :user-login})
|
||||
(login/open-login-modal!)))
|
||||
|
||||
(defmethod events/handle :asset/dialog-edit-external-url [[_ asset-block pdf-current]]
|
||||
(shui/dialog-open!
|
||||
|
||||
Reference in New Issue
Block a user