X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1c7242e61e9d71c7a37483ec0583dd0256f8ee7e..17d467bf2fecc68a6d66beea293cf23a38f95a53:/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 5e842764..b5564891 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,25 +3,24 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import { RenameIcon, DownloadIcon, RemoveIcon } from "../../../components/icon/icon"; +import { RenameIcon, RemoveIcon } from "~/components/icon/icon"; +import { DownloadCollectionFileAction } from "../actions/download-collection-file-action"; +import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions'; export const collectionFilesItemActionSet: ContextMenuActionSet = [[{ name: "Rename", icon: RenameIcon, execute: (dispatch, resource) => { - return; + dispatch(openRenameFileDialog({ name: resource.name, id: resource.uuid })); } -},{ - name: "Download", - icon: DownloadIcon, - execute: (dispatch, resource) => { - return; - } -},{ +}, { + component: DownloadCollectionFileAction, + execute: () => { return; } +}, { name: "Remove", icon: RemoveIcon, execute: (dispatch, resource) => { - return; + dispatch(openFileRemoveDialog(resource.uuid)); } }]];