Add copy all code button

This commit is contained in:
alonso.torres 2023-06-14 12:24:40 +02:00
parent 600b1a6d8d
commit e01af790f3
6 changed files with 64 additions and 23 deletions

View file

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