Skip to content

Commit e79e3e4

Browse files
committed
irods
1 parent 0f64d35 commit e79e3e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import ValidatingSubmitButton from "../../../components/ValidatingSubmitButton";
3434
import Result from "../../../util/result";
3535
import AccessibilityTips from "../../../components/AccessibilityTips";
3636
import docLinks from "../../../assets/DocLinks";
37+
import AnalyticsContext from "../../../stores/contexts/Analytics";
3738

3839
/**
3940
* The color scheme to match the iRODS branding.
@@ -139,6 +140,7 @@ function MoveCopyDialog({
139140
dialogOpen,
140141
setDialogOpen,
141142
}: MoveCopyDialogArgs) {
143+
const { trackEvent } = React.useContext(AnalyticsContext);
142144
const irods = useIrods(selectedIds);
143145
const [locationsAnchorEl, setLocationsAnchorEl] = React.useState(null);
144146
const [selectedDestination, setSelectedDestination] =
@@ -204,6 +206,7 @@ function MoveCopyDialog({
204206
.then(() => {
205207
setDialogOpen(false);
206208
setShowUsernamePasswordForm(false);
209+
trackEvent("user:copy:file:irods");
207210
})
208211
.finally(() => {
209212
setOperationInProgress(false);
@@ -216,6 +219,7 @@ function MoveCopyDialog({
216219
.then(() => {
217220
setDialogOpen(false);
218221
setShowUsernamePasswordForm(false);
222+
trackEvent("user:move:file:irods");
219223
})
220224
.finally(() => {
221225
setOperationInProgress(false);

0 commit comments

Comments
 (0)