mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 00:56:12 +02:00
🐛 Disallow creating a component for an artboard
This commit is contained in:
parent
976dab90c8
commit
3ddf04fa31
1 changed files with 3 additions and 2 deletions
|
@ -140,8 +140,9 @@
|
|||
[:& menu-entry {:title (t locale "workspace.shape.menu.lock")
|
||||
:on-click do-lock-shape}])
|
||||
|
||||
(when (or (nil? (:shape-ref shape))
|
||||
(> (count selected) 1))
|
||||
(when (and (or (nil? (:shape-ref shape))
|
||||
(> (count selected) 1))
|
||||
(not= (:type shape) :frame))
|
||||
[:*
|
||||
[:& menu-separator]
|
||||
[:& menu-entry {:title (t locale "workspace.shape.menu.create-component")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue