From 72a855d4ac3f2d464955cd66970081310834930b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 18 Feb 2026 11:17:05 +0100 Subject: [PATCH] :bug: Fix activeSets in themes API --- frontend/src/app/plugins/tokens.cljs | 12 +++++++++++- .../poc-tokens-plugin/src/app/app.component.html | 7 ++++++- .../apps/poc-tokens-plugin/src/app/app.component.ts | 1 + plugins/apps/poc-tokens-plugin/src/plugin.ts | 2 ++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/plugins/tokens.cljs b/frontend/src/app/plugins/tokens.cljs index dd4c18c592..f22c1fa128 100644 --- a/frontend/src/app/plugins/tokens.cljs +++ b/frontend/src/app/plugins/tokens.cljs @@ -354,7 +354,17 @@ (st/emit! (dwtl/toggle-token-theme-active id))) :activeSets - {:this true :get (fn [_])} + {:this true + :get (fn [_] + (let [tokens-lib (u/locate-tokens-lib file-id) + theme (u/locate-token-theme file-id id)] + (->> theme + :sets + (map #(->> % + (ctob/get-set-by-name tokens-lib) + (ctob/get-id) + (token-set-proxy plugin-id file-id))) + (apply array))))} :addSet {:enumerable false diff --git a/plugins/apps/poc-tokens-plugin/src/app/app.component.html b/plugins/apps/poc-tokens-plugin/src/app/app.component.html index f5ef5ff940..2f7e188259 100644 --- a/plugins/apps/poc-tokens-plugin/src/app/app.component.html +++ b/plugins/apps/poc-tokens-plugin/src/app/app.component.html @@ -18,7 +18,12 @@