mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 18:17:13 +02:00
✨ Import/export folders in library elements
This commit is contained in:
parent
f312c122ca
commit
ddbdc2a27f
6 changed files with 48 additions and 23 deletions
|
@ -393,6 +393,7 @@
|
|||
|
||||
(let [selrect init/empty-selrect
|
||||
name (:name data)
|
||||
path (:path data)
|
||||
obj (-> (init/make-minimal-group nil selrect name)
|
||||
(merge data)
|
||||
(check-name file :group)
|
||||
|
@ -402,6 +403,7 @@
|
|||
{:type :add-component
|
||||
:id (:id obj)
|
||||
:name name
|
||||
:path path
|
||||
:shapes [obj]})
|
||||
|
||||
(assoc :last-id (:id obj))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue