From f2c6109dd957867d477f4fda8169a6485893afc2 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 27 Nov 2024 10:33:48 +0100 Subject: [PATCH] Rename --- common/src/app/common/types/tokens_lib.cljc | 4 ++-- frontend/src/app/main/ui/workspace/tokens/token_set.cljs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index e32677429..b65ba63ae 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -268,7 +268,7 @@ (delete-token [_ token-name] "delete a token from the list") (get-token [_ token-name] "return token by token-name") (get-tokens [_] "return an ordered sequence of all tokens in the set") - (get-set-path [_] "returns name of set converted to the path with prefix identifiers") + (get-set-prefixed-path-string [_] "convert set name to prefixed full path string") (get-tokens-tree [_] "returns a tree of tokens split & nested by their name path") (get-dtcg-tokens-tree [_] "returns tokens tree formated to the dtcg spec")) @@ -317,7 +317,7 @@ (get-tokens [_] (vals tokens)) - (get-set-path [_] + (get-set-prefixed-path-string [_] (set-name->prefixed-set-name name)) (get-tokens-tree [_] diff --git a/frontend/src/app/main/ui/workspace/tokens/token_set.cljs b/frontend/src/app/main/ui/workspace/tokens/token_set.cljs index 380a6b997..d82416fbb 100644 --- a/frontend/src/app/main/ui/workspace/tokens/token_set.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/token_set.cljs @@ -41,7 +41,7 @@ (some-> (get-workspace-tokens-lib state) (ctob/get-sets) (first) - (ctob/get-set-path)))) + (ctob/get-set-prefixed-path-string)))) (defn get-selected-token-set-node [state] (when-let [path (some-> (get-selected-token-set-id state)