mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -05:00
commit
47bf817462
2 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,7 @@
|
||||||
(def ^:private library-change-types
|
(def ^:private library-change-types
|
||||||
#{:add-color :mod-color :del-color
|
#{:add-color :mod-color :del-color
|
||||||
:add-media :mod-media :del-media
|
:add-media :mod-media :del-media
|
||||||
:add-component :mod-component :del-component
|
:add-component :mod-component :del-component :restore-component
|
||||||
:add-typography :mod-typography :del-typography})
|
:add-typography :mod-typography :del-typography})
|
||||||
|
|
||||||
(def ^:private file-change-types
|
(def ^:private file-change-types
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.common.thumbnails :as thc]
|
[app.common.thumbnails :as thc]
|
||||||
[app.common.types.component :as ctk]
|
[app.common.types.component :as ctk]
|
||||||
|
[app.common.types.container :as ctn]
|
||||||
[app.common.types.file :as ctf]
|
[app.common.types.file :as ctf]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
|
@ -354,6 +355,7 @@
|
||||||
(not is-dangling?)
|
(not is-dangling?)
|
||||||
(or (not components-v2)
|
(or (not components-v2)
|
||||||
(and (not main-instance?)
|
(and (not main-instance?)
|
||||||
|
(not (ctn/has-any-copy-parent? objects shape))
|
||||||
(cfh/component-touched? objects (:id shape)))))
|
(cfh/component-touched? objects (:id shape)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue