mirror of https://github.com/logseq/logseq
fix: disable onboarding on demo graph
parent
5487ca675f
commit
07e62c81bb
|
@ -17,6 +17,7 @@
|
|||
use-click-outside]]
|
||||
[frontend.state :as state]
|
||||
[frontend.storage :as storage]
|
||||
[frontend.config :as config]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.util :as util]
|
||||
[promesa.core :as p]
|
||||
|
@ -300,6 +301,7 @@
|
|||
[]
|
||||
(when (and (user-handler/feature-available? :whiteboard)
|
||||
(not (or (state/sub :whiteboard/onboarding-tour?)
|
||||
(config/demo-graph?)
|
||||
(util/mobile?))))
|
||||
(state/pub-event! [:whiteboard/onboarding])
|
||||
(state/set-state! [:whiteboard/onboarding-tour?] true)
|
||||
|
|
Loading…
Reference in New Issue