Add typescript paths to top level folders
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-files-item-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
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 { openFileRemoveDialog } from "../../file-remove-dialog/file-remove-dialog";
9
10
11 export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
12     name: "Rename",
13     icon: RenameIcon,
14     execute: (dispatch, resource) => {
15         dispatch<any>(openRenameFileDialog(resource.name));
16     }
17 }, {
18     name: "Download",
19     icon: DownloadIcon,
20     execute: (dispatch, resource) => {
21         return;
22     }
23 }, {
24     name: "Remove",
25     icon: RemoveIcon,
26     execute: (dispatch, resource) => {
27         dispatch(openFileRemoveDialog(resource.uuid));
28     }
29 }]];