0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-21 22:36:12 -05:00

🐛 Fix features activation by devtools console

This commit is contained in:
Andrés Moya 2023-04-12 16:14:36 +02:00
parent aaca901fd9
commit 271b83de2e
2 changed files with 8 additions and 3 deletions

View file

@ -13,7 +13,7 @@
[app.main.data.users :as du]
[app.main.data.websocket :as ws]
[app.main.errors]
[app.main.features :as features]
[app.main.features :as feat]
[app.main.store :as st]
[app.main.ui :as ui]
[app.main.ui.alert]
@ -27,6 +27,7 @@
[app.util.theme :as theme]
[beicon.core :as rx]
[debug]
[features]
[potok.core :as ptk]
[rumext.v2 :as mf]))
@ -57,7 +58,7 @@
(watch [_ _ stream]
(rx/merge
(rx/of (ev/initialize)
(features/initialize)
(feat/initialize)
(du/initialize-profile))
(->> stream

View file

@ -10,5 +10,9 @@
[app.main.features :as features]))
(defn ^:export components-v2 []
(features/toggle-feature! :components-v2))
(features/toggle-feature! :components-v2)
nil)
(defn ^:export is-components-v2 []
(let [active? (features/active-feature :components-v2)]
@active?))