mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
Automatically open when adding token
This commit is contained in:
parent
40846b87c2
commit
1cc1d94a27
1 changed files with 1 additions and 1 deletions
|
@ -106,6 +106,7 @@
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(let [{:keys [key fields]} modal]
|
(let [{:keys [key fields]} modal]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
|
(st/emit! (dt/set-token-type-section-open type true))
|
||||||
(modal/show! key {:x (.-clientX ^js event)
|
(modal/show! key {:x (.-clientX ^js event)
|
||||||
:y (.-clientY ^js event)
|
:y (.-clientY ^js event)
|
||||||
:position :right
|
:position :right
|
||||||
|
@ -126,7 +127,6 @@
|
||||||
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
||||||
[:div {:class (stl/css :section-icon)}
|
[:div {:class (stl/css :section-icon)}
|
||||||
[:& token-section-icon {:type type}]])
|
[:& token-section-icon {:type type}]])
|
||||||
|
|
||||||
:title title
|
:title title
|
||||||
:assets-count tokens-count
|
:assets-count tokens-count
|
||||||
:open? open?}
|
:open? open?}
|
||||||
|
|
Loading…
Add table
Reference in a new issue