1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
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';
9 export const collectionFilesActionSet: ContextMenuActionSet = [[{
11 execute: dispatch => {
12 dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
16 execute: dispatch => {
17 dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
20 name: "Remove selected",
21 execute: dispatch => {
22 dispatch(openMultipleFilesRemoveDialog());
25 name: "Download selected",
26 execute: () => { return; }
28 name: "Create a new collection with selected",
29 execute: dispatch => {
30 dispatch<any>(openCollectionPartialCopyDialog());