mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 05:46:40 +02:00
🐛 Add missing audit event on copy-all-code
This commit is contained in:
parent
a6562619a3
commit
835c29fbea
1 changed files with 8 additions and 1 deletions
|
@ -189,7 +189,14 @@
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps style-code markup-code images-data)
|
(mf/deps style-code markup-code images-data)
|
||||||
(fn []
|
(fn []
|
||||||
(wapi/write-to-clipboard (gen-all-code style-code markup-code images-data))))
|
(wapi/write-to-clipboard (gen-all-code style-code markup-code images-data))
|
||||||
|
(let [origin (if (= :workspace from)
|
||||||
|
"workspace"
|
||||||
|
"viewer")]
|
||||||
|
(st/emit! (ptk/event ::ev/event
|
||||||
|
{::ev/name "copy-inspect-code"
|
||||||
|
::ev/origin origin
|
||||||
|
:type "all"})))))
|
||||||
|
|
||||||
;;handle-open-review
|
;;handle-open-review
|
||||||
;;(mf/use-fn
|
;;(mf/use-fn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue