🐛 Disallow creating a component for an artboard

This commit is contained in:
Andrés Moya 2020-12-04 10:54:32 +01:00 committed by Andrey Antukh
parent 976dab90c8
commit 3ddf04fa31

View file

@ -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")