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 { TogglePublicFavoriteAction } from "views-components/context-menu/actions/public-favorite-action";
7 import { togglePublicFavorite } from "store/public-favorites/public-favorites-actions";
8 import { publicFavoritePanelActions } from "store/public-favorites-panel/public-favorites-action";
10 import { shareAction, toggleFavoriteAction, openInNewTabMenuAction, copyToClipboardMenuAction, viewDetailsAction, advancedAction, openWith3rdPartyClientAction, freezeProjectAction, editProjectAction, moveToAction, toggleTrashAction, newProjectAction } from "views-components/context-menu/action-sets/project-action-set";
12 export const togglePublicFavoriteAction = {
13 component: TogglePublicFavoriteAction,
14 name: 'TogglePublicFavoriteAction',
15 execute: (dispatch, resource) => {
16 dispatch(togglePublicFavorite(resource)).then(() => {
17 dispatch(publicFavoritePanelActions.REQUEST_ITEMS());
21 export const projectAdminActionSet: ContextMenuActionSet = [[
23 openInNewTabMenuAction,
24 copyToClipboardMenuAction,
27 openWith3rdPartyClientAction,
34 togglePublicFavoriteAction
37 export const filterGroupAdminActionSet: ContextMenuActionSet = [[
39 openInNewTabMenuAction,
40 copyToClipboardMenuAction,
43 openWith3rdPartyClientAction,
48 togglePublicFavoriteAction
52 export const frozenAdminActionSet: ContextMenuActionSet = [[
54 togglePublicFavoriteAction,
56 openInNewTabMenuAction,
57 copyToClipboardMenuAction,
60 openWith3rdPartyClientAction,