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, openCollectionPartialCopyToSelectedCollectionDialog } from '~/store/collections/collection-partial-copy-actions';
8 import { DownloadCollectionFileAction } from "~/views-components/context-menu/actions/download-collection-file-action";
10 export const readOnlyCollectionFilesActionSet: ContextMenuActionSet = [[
13 execute: dispatch => {
14 dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
19 execute: dispatch => {
20 dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
24 component: DownloadCollectionFileAction,
25 execute: () => { return; }
28 name: "Create a new collection with selected",
29 execute: dispatch => {
30 dispatch<any>(openCollectionPartialCopyDialog());
34 name: "Copy selected into the collection",
35 execute: dispatch => {
36 dispatch<any>(openCollectionPartialCopyToSelectedCollectionDialog());
41 export const collectionFilesActionSet: ContextMenuActionSet = readOnlyCollectionFilesActionSet.concat([[
43 name: "Remove selected",
44 execute: dispatch => {
45 dispatch(openMultipleFilesRemoveDialog());