X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/12a7331edc4ca08c12f0d525df1a979d10cd1168..9c73ce8f871a403f2d9e15fbb15ef58fa6adc64c:/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts diff --git a/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts b/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts index e24108f4..a3bfa0b9 100644 --- a/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts +++ b/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts @@ -3,9 +3,10 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import { RenameIcon, DownloadIcon, RemoveIcon } from "../../../components/icon/icon"; +import { RenameIcon, DownloadIcon, RemoveIcon } from "~/components/icon/icon"; import { openRenameFileDialog } from "../../rename-file-dialog/rename-file-dialog"; -import { openFileRemoveDialog } from "../../file-remove-dialog/file-remove-dialog"; +import { DownloadCollectionFileAction } from "../actions/download-collection-file-action"; +import { openFileRemoveDialog } from "../../../store/collection-panel/collection-panel-files/collection-panel-files-actions"; export const collectionFilesItemActionSet: ContextMenuActionSet = [[{ @@ -15,15 +16,12 @@ export const collectionFilesItemActionSet: ContextMenuActionSet = [[{ dispatch(openRenameFileDialog(resource.name)); } }, { - name: "Download", - icon: DownloadIcon, - execute: (dispatch, resource) => { - return; - } + component: DownloadCollectionFileAction, + execute: () => { return; } }, { name: "Remove", icon: RemoveIcon, execute: (dispatch, resource) => { - dispatch(openFileRemoveDialog(resource.uuid)); + dispatch(openFileRemoveDialog(resource.uuid)); } }]];