X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b130d8595d05d46f2f29ebe4c1cf3dff392bc26b..c6b3db3a8e2fcb7fe8d44cdd60e12fe7e2be571f:/src/views-components/context-menu/action-sets/collection-files-action-set.ts diff --git a/src/views-components/context-menu/action-sets/collection-files-action-set.ts b/src/views-components/context-menu/action-sets/collection-files-action-set.ts index f34f2868..3e6e1a20 100644 --- a/src/views-components/context-menu/action-sets/collection-files-action-set.ts +++ b/src/views-components/context-menu/action-sets/collection-files-action-set.ts @@ -5,10 +5,10 @@ import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set"; import { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "store/collection-panel/collection-panel-files/collection-panel-files-actions"; import { - openCollectionPartialCopyDialog, - // Disabled while addressing #18587 - // openCollectionPartialCopyToSelectedCollectionDialog + openCollectionPartialCopyToNewCollectionDialog, + openCollectionPartialCopyToExistingCollectionDialog } from 'store/collections/collection-partial-copy-actions'; +import { openCollectionPartialMoveToExistingCollectionDialog, openCollectionPartialMoveToNewCollectionDialog } from "store/collections/collection-partial-move-actions"; // These action sets are used on the multi-select actions button. export const readOnlyCollectionFilesActionSet: ContextMenuActionSet = [[ @@ -25,18 +25,17 @@ export const readOnlyCollectionFilesActionSet: ContextMenuActionSet = [[ } }, { - name: "Create a new collection with selected", + name: "Copy selected into new collection", execute: dispatch => { - dispatch(openCollectionPartialCopyDialog()); + dispatch(openCollectionPartialCopyToNewCollectionDialog()); } }, - // Disabled while addressing #18587 - // { - // name: "Copy selected into the collection", - // execute: dispatch => { - // dispatch(openCollectionPartialCopyToSelectedCollectionDialog()); - // } - // } + { + name: "Copy selected into existing collection", + execute: dispatch => { + dispatch(openCollectionPartialCopyToExistingCollectionDialog()); + } + } ]]; export const collectionFilesActionSet: ContextMenuActionSet = readOnlyCollectionFilesActionSet.concat([[ @@ -46,4 +45,16 @@ export const collectionFilesActionSet: ContextMenuActionSet = readOnlyCollection dispatch(openMultipleFilesRemoveDialog()); } }, + { + name: "Move selected into new collection", + execute: dispatch => { + dispatch(openCollectionPartialMoveToNewCollectionDialog()); + } + }, + { + name: "Move selected into existing collection", + execute: dispatch => { + dispatch(openCollectionPartialMoveToExistingCollectionDialog()); + } + } ]]);