fix: onboarding state naming

pull/7440/head
Konstantinos Kaloutas 2022-11-29 11:02:17 +02:00
parent a876cd34bc
commit 416425888f
2 changed files with 4 additions and 4 deletions

View File

@ -299,12 +299,12 @@
(defn onboarding-show (defn onboarding-show
[] []
(when (and (user-handler/feature-available? :whiteboard) (when (and (user-handler/feature-available? :whiteboard)
(not (or (state/sub :whiteboard/onboarding?) (not (or (state/sub :whiteboard/onboarding-tour?)
(state/enable-whiteboards?) (state/enable-whiteboards?)
(util/mobile?)))) (util/mobile?))))
(state/pub-event! [:whiteboard/onboarding]) (state/pub-event! [:whiteboard/onboarding])
(state/set-state! [:whiteboard/onboarding?] true) (state/set-state! [:whiteboard/onboarding-tour?] true)
(storage/set :whiteboard-onboarding? true))) (storage/set :whiteboard-onboarding-tour? true)))
(rum/defc onboarding-welcome (rum/defc onboarding-welcome
[close-fn] [close-fn]

View File

@ -275,7 +275,7 @@
:graph/importing-state {} :graph/importing-state {}
:whiteboard/onboarding-whiteboard? (or (storage/get :ls-onboarding-whiteboard?) false) :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 ;; Block ast state
;; =============== ;; ===============