mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05: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
|
||||
[app.main.features :as features]
|
||||
[app.main.store :as st]
|
||||
[app.plugins :as plugins]
|
||||
[app.util.timers :as tm]))
|
||||
|
||||
(defn ^:export is-components-v2 []
|
||||
|
@ -25,6 +26,8 @@
|
|||
(clj->js (features/get-team-enabled-features @st/state)))
|
||||
|
||||
(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")))
|
||||
nil)
|
||||
|
||||
|
|
Loading…
Reference in a new issue