mirror of
https://github.com/penpot/penpot.git
synced 2025-02-22 23:06:08 -05:00
🐛 Fix features activation by devtools console
This commit is contained in:
parent
aaca901fd9
commit
271b83de2e
2 changed files with 8 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
[app.main.data.users :as du]
|
[app.main.data.users :as du]
|
||||||
[app.main.data.websocket :as ws]
|
[app.main.data.websocket :as ws]
|
||||||
[app.main.errors]
|
[app.main.errors]
|
||||||
[app.main.features :as features]
|
[app.main.features :as feat]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui :as ui]
|
[app.main.ui :as ui]
|
||||||
[app.main.ui.alert]
|
[app.main.ui.alert]
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
[app.util.theme :as theme]
|
[app.util.theme :as theme]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[debug]
|
[debug]
|
||||||
|
[features]
|
||||||
[potok.core :as ptk]
|
[potok.core :as ptk]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@
|
||||||
(watch [_ _ stream]
|
(watch [_ _ stream]
|
||||||
(rx/merge
|
(rx/merge
|
||||||
(rx/of (ev/initialize)
|
(rx/of (ev/initialize)
|
||||||
(features/initialize)
|
(feat/initialize)
|
||||||
(du/initialize-profile))
|
(du/initialize-profile))
|
||||||
|
|
||||||
(->> stream
|
(->> stream
|
||||||
|
|
|
@ -10,5 +10,9 @@
|
||||||
[app.main.features :as features]))
|
[app.main.features :as features]))
|
||||||
|
|
||||||
(defn ^:export components-v2 []
|
(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?))
|
||||||
|
|
Loading…
Add table
Reference in a new issue