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, DownloadIcon, RemoveIcon } from "~/components/icon/icon";
7 import { openRenameFileDialog } from "../../rename-file-dialog/rename-file-dialog";
8 import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
9 import { openFileRemoveDialog } from "../../../store/collection-panel/collection-panel-files/collection-panel-files-actions";
12 export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
15 execute: (dispatch, resource) => {
16 dispatch<any>(openRenameFileDialog(resource.name));
19 component: DownloadCollectionFileAction,
20 execute: () => { return; }
24 execute: (dispatch, resource) => {
25 dispatch<any>(openFileRemoveDialog(resource.uuid));