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";
13 } from "components/icon/icon";
14 import { copyToClipboardAction, openInNewTabAction } from "store/open-in-new-tab/open-in-new-tab.actions";
15 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
16 import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
18 export const workflowActionSet: ContextMenuActionSet = [[
21 name: "Open in new tab",
22 execute: (dispatch, resource) => {
23 dispatch<any>(openInNewTabAction(resource));
28 name: "Copy to clipboard",
29 execute: (dispatch, resource) => {
30 dispatch<any>(copyToClipboardAction(resource));
36 execute: dispatch => {
37 dispatch<any>(toggleDetailsPanel());
43 execute: (dispatch, resource) => {
44 dispatch<any>(openAdvancedTabDialog(resource.uuid));
50 execute: (dispatch, resource) => {
51 dispatch<any>(openRunProcess(resource.uuid, resource.ownerUuid, resource.name));