mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 04:51:39 +02:00
✨ Add copy all code button
This commit is contained in:
parent
600b1a6d8d
commit
e01af790f3
6 changed files with 64 additions and 23 deletions
|
@ -27,7 +27,7 @@
|
|||
[:button.copy-button
|
||||
{:on-click #(when-not @just-copied
|
||||
(reset! just-copied true)
|
||||
(wapi/write-to-clipboard data))}
|
||||
(wapi/write-to-clipboard (if (fn? data) (data) data)))}
|
||||
(if @just-copied
|
||||
i/tick
|
||||
i/copy)]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue