diff --git a/frontend/src/app/main/ui/viewer/share_link.cljs b/frontend/src/app/main/ui/viewer/share_link.cljs index 8b08ba935..399c998a5 100644 --- a/frontend/src/app/main/ui/viewer/share_link.cljs +++ b/frontend/src/app/main/ui/viewer/share_link.cljs @@ -126,7 +126,7 @@ (let [params (prepare-params options) params (assoc params :file-id (:id file))] (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" :can-comment (:who-comment params) :can-inspect-code (:who-inspect params)})))) @@ -137,7 +137,9 @@ (st/emit! (msg/show {:type :info :notification-type :toast :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 (fn [_]