X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6a6fea74799f8fc473578978499f66171f5b6ab3..4b8cc1acf54add3e4337b27a7e957a84dc9c07b4:/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 6f3efc31..4a0a83b9 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 @@ -11,6 +11,7 @@ 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"; export const processResourceActionSet: ContextMenuActionSet = [[ { @@ -23,15 +24,8 @@ export const processResourceActionSet: ContextMenuActionSet = [[ { icon: ShareIcon, name: "Share", - execute: (dispatch, resource) => { - // add code - } - }, - { - icon: MoveToIcon, - name: "Move to", - execute: (dispatch, resource) => { - dispatch(openMoveProcessDialog(resource)); + execute: (dispatch, { uuid }) => { + dispatch(openSharingDialog(uuid)); } }, { @@ -42,6 +36,13 @@ export const processResourceActionSet: ContextMenuActionSet = [[ }); } }, + { + icon: MoveToIcon, + name: "Move to", + execute: (dispatch, resource) => { + dispatch(openMoveProcessDialog(resource)); + } + }, { icon: CopyIcon, name: "Copy to project", @@ -55,12 +56,12 @@ export const processResourceActionSet: ContextMenuActionSet = [[ execute: dispatch => { dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()); } - }, - { - icon: RemoveIcon, - name: "Remove", - execute: (dispatch, resource) => { - // add code - } } + // { + // icon: RemoveIcon, + // name: "Remove", + // execute: (dispatch, resource) => { + // // add code + // } + // } ]];