X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6a9ed65ed717080ce933718436038b5c4dec2a74..4d2f28ce28f9a6ff5018a4a0c5200ee4bfb277e2:/src/views-components/context-menu/action-sets/collection-action-set.ts?ds=sidebyside 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 a33f78d1..d6095d10 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 @@ -15,6 +15,7 @@ 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'; export const collectionActionSet: ContextMenuActionSet = [[ { @@ -39,12 +40,6 @@ export const collectionActionSet: ContextMenuActionSet = [[ }); } }, - { - component: ToggleTrashAction, - execute: (dispatch, resource) => { - dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!)); - } - }, { icon: MoveToIcon, name: "Move to", @@ -62,7 +57,7 @@ export const collectionActionSet: ContextMenuActionSet = [[ icon: DetailsIcon, name: "View details", execute: dispatch => { - dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()); + dispatch(toggleDetailsPanel()); } }, // { @@ -78,7 +73,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",