1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionItemSet } from "views-components/context-menu/context-menu-action-set";
6 import { MoveToIcon, RemoveIcon, ReRunProcessIcon } from "components/icon/icon";
7 import { openMoveProcessDialog } from "store/processes/process-move-actions";
8 import { openCopyProcessDialog } from "store/processes/process-copy-actions";
9 import { openRemoveProcessDialog } from "store/processes/processes-actions";
11 export const msProcessActionSet: ContextMenuActionItemSet = [
14 icon: ReRunProcessIcon,
15 name: "Copy and re-run process",
16 execute: (dispatch, resources) => {
17 for (const resource of [...resources]) {
18 dispatch<any>(openCopyProcessDialog(resource));
25 execute: (dispatch, resources) => {
26 dispatch<any>(openMoveProcessDialog(resources[0]));
32 execute: (dispatch, resources) => {
33 dispatch<any>(openRemoveProcessDialog(resources[0], resources.length));