1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { ToggleFavoriteAction } from "../actions/favorite-action";
7 import { toggleFavorite } from "~/store/favorites/favorites-actions";
8 import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon } from "~/components/icon/icon";
9 import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
10 import { openMoveProcessDialog } from '~/store/processes/process-move-actions';
11 import { openProcessUpdateDialog } from "~/store/processes/process-update-actions";
12 import { openCopyProcessDialog } from '~/store/processes/process-copy-actions';
14 export const processResourceActionSet: ContextMenuActionSet = [[
18 execute: (dispatch, resource) => dispatch<any>(openProcessUpdateDialog(resource))
23 execute: (dispatch, resource) => {
30 execute: (dispatch, resource) => dispatch<any>(openMoveProcessDialog(resource))
33 component: ToggleFavoriteAction,
34 execute: (dispatch, resource) => {
35 dispatch<any>(toggleFavorite(resource)).then(() => {
36 dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
42 name: "Copy to project",
43 execute: (dispatch, resource) => dispatch<any>(openCopyProcessDialog(resource))
48 execute: (dispatch, resource) => {
55 execute: (dispatch, resource) => {