X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/953fa9de6f70c1de6e875d86b47d5bf3ac40830c..34f3d66c75012eacc5e2ee5124168fab73dbb238:/src/views-components/multiselect-toolbar/ms-collection-action-set.ts diff --git a/src/views-components/multiselect-toolbar/ms-collection-action-set.ts b/src/views-components/multiselect-toolbar/ms-collection-action-set.ts index 338c18ef42..3afe15568e 100644 --- a/src/views-components/multiselect-toolbar/ms-collection-action-set.ts +++ b/src/views-components/multiselect-toolbar/ms-collection-action-set.ts @@ -7,14 +7,15 @@ import { openMoveCollectionDialog } from "store/collections/collection-move-acti import { openCollectionCopyDialog, openMultiCollectionCopyDialog } from "store/collections/collection-copy-actions"; import { toggleCollectionTrashed } from "store/trash/trash-actions"; import { ContextMenuResource } from "store/context-menu/context-menu-actions"; -import { MultiSelectMenuActionSet, MultiSelectMenuActionNames } from "./ms-menu-action-set"; +import { MultiSelectMenuActionSet, MultiSelectMenuActionNames } from "./ms-menu-actions"; import { TrashIcon } from "components/icon/icon"; export const msCollectionActionSet: MultiSelectMenuActionSet = [ [ { - icon: CopyIcon, name: MultiSelectMenuActionNames.MAKE_A_COPY, + icon: CopyIcon, + hasAlts: false, isForMulti: true, execute: (dispatch, [...resources]) => { if (resources[0].fromContextMenu || resources.length === 1) dispatch(openCollectionCopyDialog(resources[0])); @@ -22,8 +23,9 @@ export const msCollectionActionSet: MultiSelectMenuActionSet = [ }, }, { - icon: MoveToIcon, name: MultiSelectMenuActionNames.MOVE_TO, + icon: MoveToIcon, + hasAlts: false, isForMulti: true, execute: (dispatch, resources) => dispatch(openMoveCollectionDialog(resources[0])), }, @@ -31,6 +33,7 @@ export const msCollectionActionSet: MultiSelectMenuActionSet = [ name: MultiSelectMenuActionNames.ADD_TO_TRASH, icon: TrashIcon, isForMulti: true, + hasAlts: false, execute: (dispatch, resources: ContextMenuResource[]) => { for (const resource of [...resources]) { dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));