mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
Add better naming to newly created icon collections.
This commit is contained in:
parent
19ebf65c68
commit
7690a088ab
@ -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)))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user