mirror of https://github.com/penpot/penpot.git
🐛 Disallow creating a component for an artboard
This commit is contained in:
parent
976dab90c8
commit
3ddf04fa31
|
|
@ -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…
Reference in New Issue