Commit e79e3e4 1 parent 0f64d35 commit e79e3e4 Copy full SHA for e79e3e4
File tree 1 file changed +4
-0
lines changed
src/main/webapp/ui/src/eln/gallery/components
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import ValidatingSubmitButton from "../../../components/ValidatingSubmitButton";
34
34
import Result from "../../../util/result" ;
35
35
import AccessibilityTips from "../../../components/AccessibilityTips" ;
36
36
import docLinks from "../../../assets/DocLinks" ;
37
+ import AnalyticsContext from "../../../stores/contexts/Analytics" ;
37
38
38
39
/**
39
40
* The color scheme to match the iRODS branding.
@@ -139,6 +140,7 @@ function MoveCopyDialog({
139
140
dialogOpen,
140
141
setDialogOpen,
141
142
} : MoveCopyDialogArgs ) {
143
+ const { trackEvent } = React . useContext ( AnalyticsContext ) ;
142
144
const irods = useIrods ( selectedIds ) ;
143
145
const [ locationsAnchorEl , setLocationsAnchorEl ] = React . useState ( null ) ;
144
146
const [ selectedDestination , setSelectedDestination ] =
@@ -204,6 +206,7 @@ function MoveCopyDialog({
204
206
. then ( ( ) => {
205
207
setDialogOpen ( false ) ;
206
208
setShowUsernamePasswordForm ( false ) ;
209
+ trackEvent ( "user:copy:file:irods" ) ;
207
210
} )
208
211
. finally ( ( ) => {
209
212
setOperationInProgress ( false ) ;
@@ -216,6 +219,7 @@ function MoveCopyDialog({
216
219
. then ( ( ) => {
217
220
setDialogOpen ( false ) ;
218
221
setShowUsernamePasswordForm ( false ) ;
222
+ trackEvent ( "user:move:file:irods" ) ;
219
223
} )
220
224
. finally ( ( ) => {
221
225
setOperationInProgress ( false ) ;
You can’t perform that action at this time.
0 commit comments