mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 13:27:02 +00:00
Add better naming to newly created icon collections.
This commit is contained in:
@@ -104,8 +104,8 @@
|
||||
(defrecord CreateCollection []
|
||||
rs/WatchEvent
|
||||
(-apply-watch [_ state s]
|
||||
(let [coll {:name "Unnamed collection"
|
||||
:id (uuid/random)}]
|
||||
(let [name (str "Unnamed Collection (" (gensym "c") ")")
|
||||
coll {:name name}]
|
||||
(->> (rp/req :create/icon-collection coll)
|
||||
(rx/map :payload)
|
||||
(rx/map collection-created)))))
|
||||
|
||||
Reference in New Issue
Block a user