1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { RenameIcon, RemoveIcon } from "~/components/icon/icon";
7 import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
8 import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions';
11 export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
14 execute: (dispatch, resource) => {
15 dispatch<any>(openRenameFileDialog({ name: resource.name, id: resource.uuid }));
18 component: DownloadCollectionFileAction,
19 execute: () => { return; }
23 execute: (dispatch, resource) => {
24 dispatch<any>(openFileRemoveDialog(resource.uuid));