X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/318fb9f2f730f376bbb4fe7afec567b7ca80aabe..fca732a280e0e078a026ef8326eb5ad65f9864c6:/src/views-components/context-menu/action-sets/process-action-set.ts diff --git a/src/views-components/context-menu/action-sets/process-action-set.ts b/src/views-components/context-menu/action-sets/process-action-set.ts index d41b59d6..05242fbc 100644 --- a/src/views-components/context-menu/action-sets/process-action-set.ts +++ b/src/views-components/context-menu/action-sets/process-action-set.ts @@ -15,8 +15,12 @@ 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 { openProcessCommandDialog } from '~/store/processes/process-command-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 { openProcessInputDialog } from "~/store/processes/process-input-actions"; +import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action'; +import { openRemoveProcessDialog } from "~/store/processes/processes-actions"; +import { navigateToOutput } from "~/store/process-panel/process-panel-actions"; export const processActionSet: ContextMenuActionSet = [[ { @@ -29,15 +33,8 @@ export const processActionSet: 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)); } }, { @@ -48,6 +45,13 @@ export const processActionSet: ContextMenuActionSet = [[ }); } }, + { + icon: MoveToIcon, + name: "Move to", + execute: (dispatch, resource) => { + dispatch(openMoveProcessDialog(resource)); + } + }, { icon: CopyIcon, name: "Copy to project", @@ -66,14 +70,16 @@ export const processActionSet: ContextMenuActionSet = [[ icon: InputIcon, name: "Inputs", execute: (dispatch, resource) => { - // add code + dispatch(openProcessInputDialog(resource.uuid)); } }, { icon: OutputIcon, name: "Outputs", execute: (dispatch, resource) => { - // add code + if(resource.outputUuid){ + dispatch(navigateToOutput(resource.outputUuid)); + } } }, { @@ -83,13 +89,6 @@ export const processActionSet: ContextMenuActionSet = [[ dispatch(openProcessCommandDialog(resource.uuid)); } }, - { - icon: DetailsIcon, - name: "View details", - execute: dispatch => { - dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()); - } - }, { icon: LogIcon, name: "Log", @@ -98,12 +97,19 @@ export const processActionSet: ContextMenuActionSet = [[ } }, { - icon: ProvenanceGraphIcon, - name: "Provenance graph", - execute: (dispatch, resource) => { - // add code + icon: DetailsIcon, + name: "View details", + execute: dispatch => { + dispatch(toggleDetailsPanel()); } }, + // { + // icon: ProvenanceGraphIcon, + // name: "Provenance graph", + // execute: (dispatch, resource) => { + // // add code + // } + // }, { icon: AdvancedIcon, name: "Advanced", @@ -112,10 +118,10 @@ export const processActionSet: ContextMenuActionSet = [[ } }, { - icon: RemoveIcon, name: "Remove", + icon: RemoveIcon, execute: (dispatch, resource) => { - // add code + dispatch(openRemoveProcessDialog(resource.uuid)); } } ]];