X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/236827e065018991740c7b565be00ca4637130c4..ba827c8901ad45c3a8af49bf11af20c90bd46376:/src/views-components/context-menu/action-sets/process-resource-action-set.ts diff --git a/src/views-components/context-menu/action-sets/process-resource-action-set.ts b/src/views-components/context-menu/action-sets/process-resource-action-set.ts index 4a0a83b9..8cab9bfd 100644 --- a/src/views-components/context-menu/action-sets/process-resource-action-set.ts +++ b/src/views-components/context-menu/action-sets/process-resource-action-set.ts @@ -10,8 +10,9 @@ import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-acti import { openMoveProcessDialog } from '~/store/processes/process-move-actions'; import { openProcessUpdateDialog } from "~/store/processes/process-update-actions"; import { openCopyProcessDialog } from '~/store/processes/process-copy-actions'; -import { detailsPanelActions } from '~/store/details-panel/details-panel-action'; import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions"; +import { openRemoveProcessDialog } from "~/store/processes/processes-actions"; +import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action'; export const processResourceActionSet: ContextMenuActionSet = [[ { @@ -54,14 +55,14 @@ export const processResourceActionSet: ContextMenuActionSet = [[ icon: DetailsIcon, name: "View details", execute: dispatch => { - dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()); + dispatch(toggleDetailsPanel()); + } + }, + { + name: "Remove", + icon: RemoveIcon, + execute: (dispatch, resource) => { + dispatch(openRemoveProcessDialog(resource.uuid)); } } - // { - // icon: RemoveIcon, - // name: "Remove", - // execute: (dispatch, resource) => { - // // add code - // } - // } ]];