mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 17:16:37 +02:00
✨ Command to activate feature plugin
This commit is contained in:
parent
716211524b
commit
362d4ea47f
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
(:require
|
(:require
|
||||||
[app.main.features :as features]
|
[app.main.features :as features]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
[app.plugins :as plugins]
|
||||||
[app.util.timers :as tm]))
|
[app.util.timers :as tm]))
|
||||||
|
|
||||||
(defn ^:export is-components-v2 []
|
(defn ^:export is-components-v2 []
|
||||||
|
@ -25,6 +26,8 @@
|
||||||
(clj->js (features/get-team-enabled-features @st/state)))
|
(clj->js (features/get-team-enabled-features @st/state)))
|
||||||
|
|
||||||
(defn ^:export plugins []
|
(defn ^:export plugins []
|
||||||
|
(when (not (features/active-feature? @st/state "plugins/runtime"))
|
||||||
|
(plugins/init!))
|
||||||
(tm/schedule-on-idle #(st/emit! (features/toggle-feature "plugins/runtime")))
|
(tm/schedule-on-idle #(st/emit! (features/toggle-feature "plugins/runtime")))
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue