From 1cc1d94a27ae05b70e5770e7dd5e4aaa1ef74868 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 23 Aug 2024 11:42:14 +0200 Subject: [PATCH] Automatically open when adding token --- frontend/src/app/main/ui/workspace/tokens/sidebar.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index c0de3321f..dbf5a1a8d 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -106,6 +106,7 @@ (fn [event] (let [{:keys [key fields]} modal] (dom/stop-propagation event) + (st/emit! (dt/set-token-type-section-open type true)) (modal/show! key {:x (.-clientX ^js event) :y (.-clientY ^js event) :position :right @@ -126,7 +127,6 @@ [:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_] [:div {:class (stl/css :section-icon)} [:& token-section-icon {:type type}]]) - :title title :assets-count tokens-count :open? open?}