Skip to content

Commit f40519d

Browse files
committed
edit documents
1 parent 9be568d commit f40519d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/webapp/ui/src/eln/gallery/components/InfoPanel.js

+3
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
679679
const { openPdfPreview } = usePdfPreview();
680680
const primaryAction = usePrimaryAction();
681681
const { openFolder } = useFolderOpen();
682+
const { trackEvent } = React.useContext(AnalyticsContext);
682683

683684
return (
684685
<>
@@ -772,6 +773,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
772773
<ActionButton
773774
onClick={() => {
774775
window.open(action.url);
776+
trackEvent("user:opens:document:collabora");
775777
}}
776778
label="Edit"
777779
sx={{
@@ -788,6 +790,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
788790
<ActionButton
789791
onClick={() => {
790792
window.open(action.url);
793+
trackEvent("user:opens:document:officeonline");
791794
}}
792795
label="Edit"
793796
sx={{

0 commit comments

Comments
 (0)