1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
6 import { openRunProcess } from 'store/workflow-panel/workflow-panel-actions';
7 import { DetailsIcon, AdvancedIcon, OpenIcon, Link, StartIcon } from 'components/icon/icon';
8 import { copyToClipboardAction, openInNewTabAction } from 'store/open-in-new-tab/open-in-new-tab.actions';
9 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
10 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
12 export const workflowActionSet: ContextMenuActionSet = [
16 name: 'Open in new tab',
17 execute: (dispatch, resources) => {
18 resources.forEach((resource) => dispatch<any>(openInNewTabAction(resource)));
23 name: 'Copy to clipboard',
24 execute: (dispatch, resources) => {
25 resources.forEach((resource) => dispatch<any>(copyToClipboardAction(resource)));
31 execute: (dispatch) => {
32 dispatch<any>(toggleDetailsPanel());
38 execute: (dispatch, resources) => {
39 resources.forEach((resource) => dispatch<any>(openAdvancedTabDialog(resource.uuid)));
45 execute: (dispatch, resources) => {
46 resources.forEach((resource) => dispatch<any>(openRunProcess(resource.uuid, resource.ownerUuid, resource.name)));