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";
8 openCollectionPartialCopyDialog,
9 // Disabled while addressing #18587
10 // openCollectionPartialCopyToSelectedCollectionDialog
11 } from 'store/collections/collection-partial-copy-actions';
13 // These action sets are used on the multi-select actions button.
14 export const readOnlyCollectionFilesActionSet: ContextMenuActionSet = [[
17 execute: dispatch => {
18 dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
23 execute: dispatch => {
24 dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
28 name: "Create a new collection with selected",
29 execute: dispatch => {
30 dispatch<any>(openCollectionPartialCopyDialog());
33 // Disabled while addressing #18587
35 // name: "Copy selected into the collection",
36 // execute: dispatch => {
37 // dispatch<any>(openCollectionPartialCopyToSelectedCollectionDialog());
42 export const collectionFilesActionSet: ContextMenuActionSet = readOnlyCollectionFilesActionSet.concat([[
44 name: "Remove selected",
45 execute: dispatch => {
46 dispatch(openMultipleFilesRemoveDialog());