X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/aed4e6256e6d5ecb5edc60a04a5aab6f04d9fb99..a348284b0d9d4ab86f2b595dd6baefc4b5c96695:/src/views-components/context-menu/action-sets/collection-action-set.ts diff --git a/src/views-components/context-menu/action-sets/collection-action-set.ts b/src/views-components/context-menu/action-sets/collection-action-set.ts index 9d26fad2..fe77b749 100644 --- a/src/views-components/context-menu/action-sets/collection-action-set.ts +++ b/src/views-components/context-menu/action-sets/collection-action-set.ts @@ -12,7 +12,6 @@ import { openMoveCollectionDialog } from '~/store/collections/collection-move-ac import { openCollectionCopyDialog } from "~/store/collections/collection-copy-actions"; import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action"; import { toggleCollectionTrashed } from "~/store/trash/trash-actions"; -import { detailsPanelActions } from '~/store/details-panel/details-panel-action'; import { openSharingDialog } from '~/store/sharing-dialog/sharing-dialog-actions'; import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab"; import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action'; @@ -40,12 +39,6 @@ export const collectionActionSet: ContextMenuActionSet = [[ }); } }, - { - component: ToggleTrashAction, - execute: (dispatch, resource) => { - dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!)); - } - }, { icon: MoveToIcon, name: "Move to", @@ -79,7 +72,13 @@ export const collectionActionSet: ContextMenuActionSet = [[ execute: (dispatch, resource) => { dispatch(openAdvancedTabDialog(resource.uuid)); } - } + }, + { + component: ToggleTrashAction, + execute: (dispatch, resource) => { + dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!)); + } + }, // { // icon: RemoveIcon, // name: "Remove",