Commit f40519d 1 parent 9be568d commit f40519d Copy full SHA for f40519d
File tree 1 file changed +3
-0
lines changed
src/main/webapp/ui/src/eln/gallery/components
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -679,6 +679,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
679
679
const { openPdfPreview } = usePdfPreview ( ) ;
680
680
const primaryAction = usePrimaryAction ( ) ;
681
681
const { openFolder } = useFolderOpen ( ) ;
682
+ const { trackEvent } = React . useContext ( AnalyticsContext ) ;
682
683
683
684
return (
684
685
< >
@@ -772,6 +773,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
772
773
< ActionButton
773
774
onClick = { ( ) => {
774
775
window . open ( action . url ) ;
776
+ trackEvent ( "user:opens:document:collabora" ) ;
775
777
} }
776
778
label = "Edit"
777
779
sx = { {
@@ -788,6 +790,7 @@ export const InfoPanelForLargeViewports: ComponentType<{||}> = () => {
788
790
< ActionButton
789
791
onClick = { ( ) => {
790
792
window . open ( action . url ) ;
793
+ trackEvent ( "user:opens:document:officeonline" ) ;
791
794
} }
792
795
label = "Edit"
793
796
sx = { {
You can’t perform that action at this time.
0 commit comments