mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 00:19:07 -05:00
Merge pull request #5034 from penpot/superalex-track-copy-shared-link-event
✨ Track copy shared link event
This commit is contained in:
commit
c581395df2
1 changed files with 4 additions and 2 deletions
|
@ -126,7 +126,7 @@
|
||||||
(let [params (prepare-params options)
|
(let [params (prepare-params options)
|
||||||
params (assoc params :file-id (:id file))]
|
params (assoc params :file-id (:id file))]
|
||||||
(st/emit! (dc/create-share-link params)
|
(st/emit! (dc/create-share-link params)
|
||||||
(ptk/event ::ev/event {::ev/name "create-shared-link"
|
(ptk/event ::ev/event {::ev/name "create-share-link"
|
||||||
::ev/origin "viewer"
|
::ev/origin "viewer"
|
||||||
:can-comment (:who-comment params)
|
:can-comment (:who-comment params)
|
||||||
:can-inspect-code (:who-inspect params)}))))
|
:can-inspect-code (:who-inspect params)}))))
|
||||||
|
@ -137,7 +137,9 @@
|
||||||
(st/emit! (msg/show {:type :info
|
(st/emit! (msg/show {:type :info
|
||||||
:notification-type :toast
|
:notification-type :toast
|
||||||
:content (tr "common.share-link.link-copied-success")
|
:content (tr "common.share-link.link-copied-success")
|
||||||
:timeout 1000})))
|
:timeout 1000})
|
||||||
|
(ptk/event ::ev/event {::ev/name "copy-share-link"
|
||||||
|
::ev/origin "viewer"})))
|
||||||
|
|
||||||
try-delete-link
|
try-delete-link
|
||||||
(fn [_]
|
(fn [_]
|
||||||
|
|
Loading…
Add table
Reference in a new issue