0
Fork 0
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:
alonso.torres 2024-04-19 11:14:52 +02:00 committed by Andrey Antukh
parent 716211524b
commit 362d4ea47f

View file

@ -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)