From c72e9ee1a09f61335d880621a8e449257c29d110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 25 Feb 2026 12:23:15 +0100 Subject: [PATCH] :bug: Convert token values for the plugins --- frontend/src/app/plugins/tokens.cljs | 3 ++- plugins/apps/poc-tokens-plugin/src/app/app.component.html | 6 +++++- plugins/apps/poc-tokens-plugin/src/app/app.component.ts | 1 + plugins/apps/poc-tokens-plugin/src/plugin.ts | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/plugins/tokens.cljs b/frontend/src/app/plugins/tokens.cljs index d7de0689a7..268652e334 100644 --- a/frontend/src/app/plugins/tokens.cljs +++ b/frontend/src/app/plugins/tokens.cljs @@ -8,6 +8,7 @@ (:require [app.common.data.macros :as dm] [app.common.files.tokens :as cfo] + [app.common.json :as json] [app.common.schema :as sm] [app.common.types.token :as cto] [app.common.types.tokens-lib :as ctob] @@ -85,7 +86,7 @@ :get (fn [_] (let [token (u/locate-token file-id set-id id)] - (:value token))) + (json/->js (:value token)))) :schema (let [token (u/locate-token file-id set-id id)] (cfo/make-token-value-schema (:type token))) :set 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 2f7e188259..9bb6fc8b9a 100644 --- a/plugins/apps/poc-tokens-plugin/src/app/app.component.html +++ b/plugins/apps/poc-tokens-plugin/src/app/app.component.html @@ -118,7 +118,11 @@ class="body-m panel-item token-item" (click)="applyToken(token.id)" > - + {{ token.name }}