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 { openUpdater } from "../../../store/collections/updater/collection-updater-action";
10 import { favoritePanelActions } from "../../../store/favorite-panel/favorite-panel-action";
12 export const collectionResourceActionSet: ContextMenuActionSet = [[
15 name: "Edit collection",
16 execute: (dispatch, resource) => {
17 dispatch<any>(openUpdater(resource));
23 execute: (dispatch, resource) => {
30 execute: (dispatch, resource) => {
35 component: ToggleFavoriteAction,
36 execute: (dispatch, resource) => {
37 dispatch<any>(toggleFavorite(resource)).then(() => {
38 dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
44 name: "Copy to project",
45 execute: (dispatch, resource) => {
52 execute: (dispatch, resource) => {
59 execute: (dispatch, resource) => {