mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 14:21:40 +02:00
✨ Copy values of same named properties moving a variant into another (#6288)
* ✨ Copy values of same named properties moving a variant into another * ✨ Add MR changes
This commit is contained in:
parent
ec8c30f060
commit
f4b16a255c
5 changed files with 163 additions and 80 deletions
|
@ -403,6 +403,7 @@
|
|||
|
||||
|
||||
(defn rename-variant
|
||||
"Rename the variant container and all components belonging to this variant"
|
||||
[variant-id name]
|
||||
(ptk/reify ::rename-variant
|
||||
|
||||
|
@ -426,6 +427,8 @@
|
|||
|
||||
|
||||
(defn rename-comp-or-variant-and-main
|
||||
"If the component is in a variant, rename the variant.
|
||||
If it is not, rename the component and its main"
|
||||
[component-id name]
|
||||
(ptk/reify ::rename-comp-or-variant-and-main
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue