mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 22:08:30 +02:00
🎉 Add support media management via library
This commit is contained in:
parent
a19417417a
commit
fffacf3552
3 changed files with 65 additions and 9 deletions
|
@ -541,6 +541,14 @@
|
|||
:object (assoc media :id id)})
|
||||
(assoc :last-id id))))
|
||||
|
||||
(defn delete-library-media
|
||||
[file media-id]
|
||||
(let [id (uuid/uuid media-id)]
|
||||
(-> file
|
||||
(commit-change
|
||||
{:type :del-media
|
||||
:id id}))))
|
||||
|
||||
(defn start-component
|
||||
[file data]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue