advanced-tab-curl-cli-python-examples
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-files-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 "~/views-components/context-menu/context-menu-action-set";
6 import { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "~/store/collection-panel/collection-panel-files/collection-panel-files-actions";
7 import { openCollectionPartialCopyDialog } from '~/store/collections/collection-partial-copy-actions';
8
9 export const collectionFilesActionSet: ContextMenuActionSet = [[{
10     name: "Select all",
11     execute: dispatch => dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES())
12 }, {
13     name: "Unselect all",
14     execute: dispatch => dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES())
15 }, {
16     name: "Remove selected",
17     execute: dispatch => dispatch(openMultipleFilesRemoveDialog())
18 }, {
19     name: "Download selected",
20     execute: () => { return; }
21 }, {
22     name: "Create a new collection with selected",
23     execute: dispatch => dispatch<any>(openCollectionPartialCopyDialog())
24 }]];