mirror of https://github.com/logseq/logseq
fix: onboarding state naming
parent
a876cd34bc
commit
416425888f
|
@ -299,12 +299,12 @@
|
|||
(defn onboarding-show
|
||||
[]
|
||||
(when (and (user-handler/feature-available? :whiteboard)
|
||||
(not (or (state/sub :whiteboard/onboarding?)
|
||||
(not (or (state/sub :whiteboard/onboarding-tour?)
|
||||
(state/enable-whiteboards?)
|
||||
(util/mobile?))))
|
||||
(state/pub-event! [:whiteboard/onboarding])
|
||||
(state/set-state! [:whiteboard/onboarding?] true)
|
||||
(storage/set :whiteboard-onboarding? true)))
|
||||
(state/set-state! [:whiteboard/onboarding-tour?] true)
|
||||
(storage/set :whiteboard-onboarding-tour? true)))
|
||||
|
||||
(rum/defc onboarding-welcome
|
||||
[close-fn]
|
||||
|
|
|
@ -275,7 +275,7 @@
|
|||
:graph/importing-state {}
|
||||
|
||||
:whiteboard/onboarding-whiteboard? (or (storage/get :ls-onboarding-whiteboard?) false)
|
||||
:whiteboard/onboarding? (or (storage/get :whiteboard-onboarding?) false)})))
|
||||
:whiteboard/onboarding-tour? (or (storage/get :whiteboard-onboarding-tour?) false)})))
|
||||
|
||||
;; Block ast state
|
||||
;; ===============
|
||||
|
|
Loading…
Reference in New Issue