From 384616c9a80bd37781fa382fd9de067c60a0b8b3 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 28 Nov 2024 09:32:11 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20Rename=20to=20match=20ITokenSet=20g?= =?UTF-8?q?lossary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/main/ui/workspace/tokens/sets.cljs | 5 ++--- .../app/main/ui/workspace/tokens/sets_context_menu.cljs | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sets.cljs b/frontend/src/app/main/ui/workspace/tokens/sets.cljs index 265307644..fc969bdbe 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sets.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sets.cljs @@ -72,7 +72,7 @@ (st/emit! (wdt/show-token-set-context-menu {:position (dom/get-client-position event) - :tree-path tree-path})))))] + :prefixed-set-path tree-path})))))] [:div {;; :ref dref :role "button" :data-testid "tokens-set-group-item" @@ -123,8 +123,7 @@ (st/emit! (wdt/show-token-set-context-menu {:position (dom/get-client-position event) - :tree-path tree-path})))))] - + :prefixed-set-path tree-path})))))] [:div {;; :ref dref :role "button" :data-testid "tokens-set-item" diff --git a/frontend/src/app/main/ui/workspace/tokens/sets_context_menu.cljs b/frontend/src/app/main/ui/workspace/tokens/sets_context_menu.cljs index 4fb37428a..426232a97 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sets_context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sets_context_menu.cljs @@ -35,10 +35,10 @@ [:span {:class (stl/css :title)} title]]) (mf/defc menu - [{:keys [tree-path]}] + [{:keys [prefixed-set-path]}] (let [{:keys [on-edit]} (sets-context/use-context) - edit-name (mf/use-fn #(on-edit tree-path)) - delete-set (mf/use-fn #(st/emit! (wdt/delete-token-set-path tree-path)))] + edit-name (mf/use-fn #(on-edit prefixed-set-path)) + delete-set (mf/use-fn #(st/emit! (wdt/delete-token-set-path prefixed-set-path)))] [:ul {:class (stl/css :context-list)} [:& menu-entry {:title (tr "labels.rename") :on-click edit-name}] [:& menu-entry {:title (tr "labels.delete") :on-click delete-set}]])) @@ -61,4 +61,4 @@ :ref dropdown-ref :style {:top top :left left} :on-context-menu prevent-default} - [:& menu {:tree-path (:tree-path mdata)}]]])) + [:& menu {:prefixed-set-path (:prefixed-set-path mdata)}]]]))