0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Automatically open when creating set

This commit is contained in:
Florian Schroedl 2024-08-23 11:43:19 +02:00
parent 1cc1d94a27
commit b48bfde5c8

View file

@ -241,7 +241,9 @@
:title "SETS" :title "SETS"
:on-collapsed #(swap! open? not)}] :on-collapsed #(swap! open? not)}]
[:button {:class (stl/css :add-set) [:button {:class (stl/css :add-set)
:on-click on-set-add-click} :on-click #(do
(reset! open? true)
(on-set-add-click %))}
i/add]] i/add]]
(when @open? (when @open?
[:& sets-list])])) [:& sets-list])]))