mirror of
https://github.com/penpot/penpot.git
synced 2026-03-20 09:23:47 +00:00
Add behaviour to duplicate button on layers sidebar.
This commit is contained in:
@@ -283,7 +283,7 @@
|
||||
shapes-by-id (rum/react wb/shapes-by-id-l)
|
||||
page (rum/react (focus-page (:page workspace)))
|
||||
close #(rs/emit! (dw/toggle-flag :layers))
|
||||
;; copy #(rs/emit! (dw/copy-selected))
|
||||
duplicate #(rs/emit! (dw/duplicate-selected))
|
||||
group #(rs/emit! (dw/group-selected))
|
||||
delete #(rs/emit! (dw/delete-selected))
|
||||
dragel (volatile! nil)]
|
||||
@@ -304,7 +304,7 @@
|
||||
(rum/with-key key))))]]
|
||||
[:div.layers-tools
|
||||
[:ul.layers-tools-content
|
||||
[:li.clone-layer #_{:on-click copy} i/copy]
|
||||
[:li.clone-layer {:on-click duplicate} i/copy]
|
||||
[:li.group-layer {:on-click group} i/folder]
|
||||
[:li.delete-layer {:on-click delete} i/trash]]]])))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user