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";
19 } from "components/icon/icon";
20 import { copyToClipboardAction, openInNewTabAction } from "store/open-in-new-tab/open-in-new-tab.actions";
21 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
22 import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
24 export const workflowActionSet: ContextMenuActionSet = [[
27 name: "Open in new tab",
28 execute: (dispatch, resource) => {
29 dispatch<any>(openInNewTabAction(resource));
34 name: "Copy to clipboard",
35 execute: (dispatch, resource) => {
36 dispatch<any>(copyToClipboardAction(resource));
42 execute: dispatch => {
43 dispatch<any>(toggleDetailsPanel());
49 execute: (dispatch, resource) => {
50 dispatch<any>(openAdvancedTabDialog(resource.uuid));
56 execute: (dispatch, resource) => {
57 dispatch<any>(openRunProcess(resource.uuid, resource.ownerUuid, resource.name));