mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 22:49:30 +00:00
🐛 Missing component copy options on the context menu
This commit is contained in:
parent
9652996f07
commit
1d3a1a094a
@ -568,6 +568,7 @@
|
|||||||
[{:keys [shapes]}]
|
[{:keys [shapes]}]
|
||||||
(let [single? (= (count shapes) 1)
|
(let [single? (= (count shapes) 1)
|
||||||
objects (deref refs/workspace-page-objects)
|
objects (deref refs/workspace-page-objects)
|
||||||
|
shapes (keep (d/getf objects) shapes)
|
||||||
can-make-component (every? true? (map #(ctn/valid-shape-for-component? objects %) shapes))
|
can-make-component (every? true? (map #(ctn/valid-shape-for-component? objects %) shapes))
|
||||||
heads (filter ctk/instance-head? shapes)
|
heads (filter ctk/instance-head? shapes)
|
||||||
components-menu-entries (cmm/generate-components-menu-entries heads)
|
components-menu-entries (cmm/generate-components-menu-entries heads)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user