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 { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "../../../store/collection-panel/collection-panel-files/collection-panel-files-actions";
7 import { createCollectionWithSelected } from "../../create-collection-dialog-with-selected/create-collection-dialog-with-selected";
10 export const collectionFilesActionSet: ContextMenuActionSet = [[{
12 execute: (dispatch) => {
13 dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
17 execute: (dispatch) => {
18 dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
21 name: "Remove selected",
22 execute: (dispatch) => {
23 dispatch(openMultipleFilesRemoveDialog());
26 name: "Download selected",
27 execute: (dispatch, resource) => {
31 name: "Create a new collection with selected",
32 execute: (dispatch) => {
33 dispatch<any>(createCollectionWithSelected());